After form Load event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I execute a sub after a form has completely loaded. I'm currently doing in the load event, and the sub updates progress fields on the form, but I'm not seeing the form until the sub is completed

In powerbuilder I used postevent (x) which would execute after the completing the form load, is there an equivalent in vb.ne

Any help would be appreciated.
 
You may want to include a DoEvents statement or spin off the sub on another
thread, although if the sub is changing the values that may not be the way
to go. Can you post the code? In the meantime, see if a few DoEvents
doesn't fix theproblem.

Bill
Roger B. said:
How can I execute a sub after a form has completely loaded. I'm currently
doing in the load event, and the sub updates progress fields on the form,
but I'm not seeing the form until the sub is completed.
In powerbuilder I used postevent (x) which would execute after the
completing the form load, is there an equivalent in vb.net
 
Looks like doevents worked perfectly, thanks

One other little issue is that the field on the screen isn't updated until the sub is done. I need it updated as the sub runs and the value changes.
 
Back
Top