|
-
Dec 23rd, 2002, 11:46 AM
#1
Thread Starter
Frenzied Member
Label text cant be changed fast!
In the application I need to change the label text fast in a loop but it can't be done and it shows nothing till (kinda hangs) the end of the loop. I dont want to make delay in the loop to have this label shown, so how can i do that?
-
Dec 23rd, 2002, 11:56 AM
#2
Member
In your loop try
lbl.Text = sometext
lbl.Refresh
Hope that works
Harold Hoffman
-
Dec 23rd, 2002, 12:03 PM
#3
Application.DoEvents will force it to show alos but it will slow down your loop a little bit too.
-
Dec 23rd, 2002, 12:06 PM
#4
Thread Starter
Frenzied Member
Thank you!
That worked, but still if the form loses its focus then the label is not drawn, again till the end of the loop.
-
Dec 23rd, 2002, 12:12 PM
#5
Thread Starter
Frenzied Member
The previous answer was for HAROLD HOFFMAN 
Application.DoEvents() did its best
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|