Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / May 2006

Tip: Looking for answers? Try searching our database.

How to determine when a form is first displayed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
curtsfakeguy@hotmail.com - 25 May 2006 22:14 GMT
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!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.