bryker
August 20th, 2002, 05:46 PM
I have a form [a] which is being called modally (via ShowDialog) from another form [b].
In the Form_Load() event of this form [a], I am occasionally detecting a condition for which I want to hide the form. Unfortunately, calling .Hide does not seem to have any effect in the Form_Load() event.
Is there another (better) startup event for detecting these situations, where calling Me.Hide() will actually hide the form (and thus set execution back to the MyForm.ShowDialog() call in form [b] which caused form [a] to display?
By the way, Me.Hide() does work, since I use it in the btnCancel_Click() event of form [a]. It's just that it doesn't work in the Form_Load() event, apparently.
Thanks.
In the Form_Load() event of this form [a], I am occasionally detecting a condition for which I want to hide the form. Unfortunately, calling .Hide does not seem to have any effect in the Form_Load() event.
Is there another (better) startup event for detecting these situations, where calling Me.Hide() will actually hide the form (and thus set execution back to the MyForm.ShowDialog() call in form [b] which caused form [a] to display?
By the way, Me.Hide() does work, since I use it in the btnCancel_Click() event of form [a]. It's just that it doesn't work in the Form_Load() event, apparently.
Thanks.