Hi Mike again,
I am now pretty sure that, as you advised, it would just be a matter of having a flag to raise up as soon as the code is run the first time (a boolean, an integer, or almost any variable). So that one's code would only run once and would run immediately after the form is activated the first time.
I also think that this can have many uses, such as checking the setup of the system in which the form is to run. Screen resolution settings, for instance.
Thanks again!