Running a routine after form has loaded 
Author Message
 Running a routine after form has loaded

I'm trying to get a subroutine to run AFTER the form has completed
the Form_Load routine because my routine makes changes to the
objects on the form and they aren't visible until the form has completed
the Form_Load routine. I'd rather not use a timer to kick it off.
Any Suggestion?
-Chris


Wed, 18 Jun 1902 08:00:00 GMT  
 Running a routine after form has loaded
Form_Activate

or... at the end of Form_Load....

Visible=True
Call MySubroutine

--

------------- 8< ------------- Cut along dotted line -------------


Quote:
> I'm trying to get a subroutine to run AFTER the form has completed
> the Form_Load routine because my routine makes changes to the
> objects on the form and they aren't visible until the form has completed
> the Form_Load routine. I'd rather not use a timer to kick it off.
> Any Suggestion?
> -Chris



Wed, 18 Jun 1902 08:00:00 GMT  
 Running a routine after form has loaded
You could try it in Form_Activate. Form_Activate fires after Form_Load and
also fires every time you click on the form when it does NOT have focus
(some other form has focus). Thus, you need to use a one-time switch in
Form_Activate to only run your code the first time Form_Activate fires
(after the Form_Load) and not thereafter.

Eric

Quote:
> I'm trying to get a subroutine to run AFTER the form has completed
> the Form_Load routine because my routine makes changes to the
> objects on the form and they aren't visible until the form has completed
> the Form_Load routine. I'd rather not use a timer to kick it off.
> Any Suggestion?
> -Chris



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Having trouble calling routines from another form

2. Run MS Access report without having Access loaded?

3. Having an outside process load a form

4. Q: Simple password routine to stop form 2 loading

5. Changing form-properties while running before loading the form

6. Changing Form's BorderStyle property at run time but before form is loaded

7. Run-Time form loading - form name retrieved from database

8. Q? having a form load, then Pause,clear and load another form?

9. Loading a form at run-time

10. Loading a form at run-time

11. Help: Loading forms at run-time.

12. Run-time error '31037': Error load form file

 

 
Powered by phpBB® Forum Software