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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top