P
Paul N
Maybe this question has been answered before, if so please refer to answer:
I want to run some initialization code in my main form, after the form is
made visible.
My current solution is to end form_init with the following:
me.show()
MyInitCode()
Is this a correct solution? I fear adverse side effects because form_init
has not run to completion when I call my code.
I also considered form_activate to call my init, but this is executed more
than once, so I would have to test a boolean eg "AlreadyInited"; not very
elegant.
Any feedback or hints welcome.
Thanks
Paul
I want to run some initialization code in my main form, after the form is
made visible.
My current solution is to end form_init with the following:
me.show()
MyInitCode()
Is this a correct solution? I fear adverse side effects because form_init
has not run to completion when I call my code.
I also considered form_activate to call my init, but this is executed more
than once, so I would have to test a boolean eg "AlreadyInited"; not very
elegant.
Any feedback or hints welcome.
Thanks
Paul