-
i know that this is a rather simple question and i should probably know the answer, but i have never needed to do it before. how do i load a form from an event procendure? i when it loads up (the second form) things will be executed in the load procedure.
thank you for you help.
-
<?>
'event procedure
Load FormWhaever
FormWhatever.Show
'and if you want the present form out of the way
FormMain.Hide
-
-
thank you much. the only problem is that i need to use the load procedure of the new form to print items on the form, but it doesn't seem to be working. any ideas?
thanks
-
<?>
Use the form Activate event not the load event.
-
Actually Load() will work. Just make sure the AutoRedraw is set to True.
Code:
Private Sub Form_Load()
AutoRedraw = True
Print "Hello"
End Sub
-
The AutoRedraw seems to have done the trick.
thanks megatron and everyone alse. I would never have guessed about the autoredraw