Question when form loads,the components does not show completely

flamenco

New member
Joined
May 4, 2011
Messages
1
Programming Experience
3-5
hi,
I have a form that it do some calculations on datas,
I create another form (for example progressform) that has a progressbar and a label with text:"Please Wait....."
I use progressform.SHOW() in first line of my analysis form load event,
but when I run the project the progress form loads incompletely and you can not see the label and progressbar in the form!
if I add a messagebox.SHOW("anything") after the line progressform.SHOW() the problem will solve and the label and progressbar apear in the form.
it seems that before the progressform loads completely the computer starts the analysis...
how can I fix this problem?
 
Try using the "Application.DoEvents()" method.
 
It seems you are tying up the UI thread with your processing, research multi-threading.
 
Back
Top