Question : Form Label Updates Not Working Properly

I'm trying to update a label I've placed in the status bar of my form. I'll place an update to the status label at the beginning of a Sub corresponding to a button push, and the update won't be seen. When the Sub is finished, I update the label again. This update at the end of the sub is seen on screen. I'm just baffled as to why the update at the beginning of the Sub isn't seen.

The Sub in question runs for about 4 seconds, so the run duration isn't short enough not to see the update.

I update like this:

 
1:
StatusL.Text = "Setting Up..."

Answer : Form Label Updates Not Working Properly


Try add   Doevents:

    StatusL.Text = "Setting Up..."
    Application.Doevents
    .....

Random Solutions  
 
programming4us programming4us