Re: Problem: Label not refreshing



There is only one thread in the application. No multithreading.

Herfried K. Wagner [MVP] wrote:
> "Smugsboy" <smugs_boy@xxxxxxxxx> schrieb:
> > I have some label on a form. This form is presented using the
Show()
> > method. While it is visible the main thread changes the Text
propery of
> > the label within this form. However I cannot see the proper label
text,
> > instead, I see my wallpaper, I have another label which is not
updated,
> > and is not displayed correctly as well. A ProgressBar on the form
does
> > displays well.
>
> If you attempt to access the label from another thread than the main
thread,
> use 'Control.Invoke'/'Control.BeginInvoke'. Instance members of
Windows
> Forms controls are not safe for multithreading, so you cannot access
them
> directly from other threads.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://classicvb.org/petition/>

.