Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Label caption runtime changes

Status
Not open for further replies.

Kaulana

Technical User
Jul 31, 2001
24
US
Want to change a label when command button clicked to say "Processing" while it processes. Caption doesn't change till the processing is over and a message box stops the run. However, the caption does change as soon as the button is pressed when I step through it.

Has to be something simple they never taught me in school. Wait a minute, I didn't go to school for this. Hmm. Kaulana (aka New Daddy Bob)
 
try somthing like

[tt]Label1.Caption = "Processing"
Label1.Refresh

' processing code here[/tt]
 
try

Label1.Caption = "Processing"
Label1.Parent.Repaint
' processing code here

or just

Label1.Caption = "Processing"
Me.Repaint
' processing code here

or if that still does not work try

Label1.Caption = "Processing"
DoEvents
' processing code here
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top