Click here to Skip to main content
15,917,321 members
Home / Discussions / C#
   

C#

 
GeneralHelp Pin
Grim Re@p3r24-Mar-08 10:47
Grim Re@p3r24-Mar-08 10:47 
GeneralRe: Help Pin
Christian Graus24-Mar-08 10:59
protectorChristian Graus24-Mar-08 10:59 
GeneralStatusStrip does not update lable Pin
s196675m24-Mar-08 10:35
s196675m24-Mar-08 10:35 
GeneralRe: StatusStrip does not update lable Pin
CodingYoshi24-Mar-08 11:14
CodingYoshi24-Mar-08 11:14 
GeneralRe: StatusStrip does not update lable Pin
s196675m24-Mar-08 12:23
s196675m24-Mar-08 12:23 
GeneralRe: StatusStrip does not update lable Pin
CodingYoshi24-Mar-08 13:55
CodingYoshi24-Mar-08 13:55 
GeneralRe: StatusStrip does not update lable Pin
s196675m24-Mar-08 14:53
s196675m24-Mar-08 14:53 
GeneralRe: StatusStrip does not update lable Pin
Luc Pattyn24-Mar-08 13:09
sitebuilderLuc Pattyn24-Mar-08 13:09 
Hi,

if all this code is running on the GUI thread (say inside a button click handler),
then it is normal the GUI is dead until your code finishes, at which point it would
show the final status text only. You could fix that by adding a line
Application.DoEvents() after changing label.Text (this is a dangerous
hack, if your code gets re-entered a stack overflow may occur, so disable the
button that started this for as long as it takes).

if all this code is supposed to run on a separate thread (in an attempt to keep
the GUI alive), then you need to use Control.InvokeRequired and Control.Invoke
to update any GUI component.


Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: StatusStrip does not update lable Pin
s196675m24-Mar-08 14:54
s196675m24-Mar-08 14:54 
Generalreturning an XML file Pin
CodingYoshi24-Mar-08 10:26
CodingYoshi24-Mar-08 10:26 
GeneralRe: returning an XML file Pin
pmarfleet24-Mar-08 10:37
pmarfleet24-Mar-08 10:37 
GeneralRe: returning an XML file Pin
CodingYoshi24-Mar-08 10:45
CodingYoshi24-Mar-08 10:45 
GeneralRe: returning an XML file Pin
pmarfleet24-Mar-08 11:17
pmarfleet24-Mar-08 11:17 
QuestionShould I Get Visual Studio 2008? Pin
BlitzPackage24-Mar-08 9:27
BlitzPackage24-Mar-08 9:27 
AnswerRe: Should I Get Visual Studio 2008? Pin
pmarfleet24-Mar-08 9:30
pmarfleet24-Mar-08 9:30 
GeneralRe: Should I Get Visual Studio 2008? Pin
BlitzPackage24-Mar-08 9:46
BlitzPackage24-Mar-08 9:46 
GeneralRe: Should I Get Visual Studio 2008? Pin
pmarfleet24-Mar-08 10:08
pmarfleet24-Mar-08 10:08 
GeneralRe: Should I Get Visual Studio 2008? Pin
PIEBALDconsult25-Mar-08 5:07
mvePIEBALDconsult25-Mar-08 5:07 
GeneralUsing active port to send TCP packets Pin
Julinnnnnn24-Mar-08 9:09
Julinnnnnn24-Mar-08 9:09 
GeneralCreating Class library (COM object) Pin
pnpfriend24-Mar-08 8:45
pnpfriend24-Mar-08 8:45 
GeneralRe: Creating Class library (COM object) Pin
Christian Graus24-Mar-08 11:13
protectorChristian Graus24-Mar-08 11:13 
GeneralListbox not updating when items are added from another thread. Pin
Jordanwb24-Mar-08 7:49
Jordanwb24-Mar-08 7:49 
GeneralRe: Listbox not updating when items are added from another thread. Pin
ptr2void24-Mar-08 19:21
ptr2void24-Mar-08 19:21 
GeneralRe: Listbox not updating when items are added from another thread. [modified] Pin
Jordanwb25-Mar-08 2:10
Jordanwb25-Mar-08 2:10 
QuestionHow to compare Date Field Value in Access Database with SystemDate and if matches then display in datagrid Pin
rizwan124-Mar-08 7:49
rizwan124-Mar-08 7:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.