How to determine when a form is first displayed

  • Thread starter Thread starter curtsfakeguy
  • Start date Start date
C

curtsfakeguy

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
 
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).
 
Back
Top