i need to know a command to wait, like i have two labels..... when the form is loaded i want label1 to come first and after 1 second -label2p
threre ıs a api named sleep. us ıt decıde how long you the program to waıt. thats ıt.
You could try using a Timer control, just set it to show the label and then disable itself (Otherwise it will keep ticking) I assume you mean VB.NET, but I am only REALLY good with VB6 - so I'll post VB6 code and you can try using it. Sometimes works fine anyway. So you have a timer, just add the following code to it.
Label1.Visible = True Timer1.Enabled = FalseOR
Label1.Caption = "CAPTION" Timer1.Enabled = FalseUse 2 timers for both labels and change the Interval to your desired MS
Yeah, what Razor said.
Or you could use the Sleep API Label1.Visible = True
Sleep 1000
Label2.Visible = TruePut the following function declaration in a .bas module and you can call the sleep function form anywhere in your application.
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Stuart
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |