Hi, this question must have been answered many times before, but I just
can't find the answer in the groups.
How can I determine when a Windows Form is displayed on-screen? When
my application starts up I want to immediately display a "wizard" to
guide the user, but when I tell the wizard form to display during
Form_Load it shows up, but the main application form isn't shown until
after the wizard is hidden. I need the main application to display and
then immediately display the wizard.
Hope this makes sense.
Curtis
Mehdi - 25 May 2006 22:21 GMT
> How can I determine when a Windows Form is displayed on-screen? When
> my application starts up I want to immediately display a "wizard" to
> guide the user, but when I tell the wizard form to display during
> Form_Load it shows up, but the main application form isn't shown until
> after the wizard is hidden. I need the main application to display and
> then immediately display the wizard.
Handle the Activated event. In the event handler, unsubscribe from the
event so that you only handle it once (when the form is first shown).
Curtis Gray - 25 May 2006 23:23 GMT
Thanx Mehdi. That worked perfectly!