hello,
I have a VB 6 project where I had some code that I used to execute by clicking a button on the form, and I've 'cut-and-pasted' that code, it's related subroutines it calls, and the form_load coad into a new project.
In this new project, I want the main subroutine which used to be invoked by a button click, I'll call it for now:
Sub CodeToAutomaticallyRunAfterFormLoadCompletes()
to Automatically run as soon as the form_load routine completes and the form is displayed on the screen. I have a Status box in this form that communicates info to use user.
I also need this Sub to not be interruped by anything in it's execution, ie, if the user minimized or switches away focus from the window, and I only need this Sub to run one time...when it's done, the form should close.
How do I setup my project code so that this will happen?
thanks in advance for your help!
david
I have a VB 6 project where I had some code that I used to execute by clicking a button on the form, and I've 'cut-and-pasted' that code, it's related subroutines it calls, and the form_load coad into a new project.
In this new project, I want the main subroutine which used to be invoked by a button click, I'll call it for now:
Sub CodeToAutomaticallyRunAfterFormLoadCompletes()
to Automatically run as soon as the form_load routine completes and the form is displayed on the screen. I have a Status box in this form that communicates info to use user.
I also need this Sub to not be interruped by anything in it's execution, ie, if the user minimized or switches away focus from the window, and I only need this Sub to run one time...when it's done, the form should close.
How do I setup my project code so that this will happen?
thanks in advance for your help!
david