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 / July 2006

Tip: Looking for answers? Try searching our database.

Forms Event model

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jsh02_nova@hotmail.com - 30 Jun 2006 12:12 GMT
Can someone point me to a document showing the sequence of form events upon
showing?

thx
tlkerns - 30 Jun 2006 12:48 GMT
See if this helps:

http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.enter.aspx

Tony

> Can someone point me to a document showing the sequence of form events upon
> showing?
>
> thx
jsh02_nova@hotmail.com - 30 Jun 2006 13:31 GMT
Thanks for the response. I was actually looking for the document that listed
the matrix of winform control event sequences during its lifecycle.

Thanks anyway.

> See if this helps:
>
[quoted text clipped - 6 lines]
> >
> > thx
Stoitcho Goutsev (100) - 30 Jun 2006 14:15 GMT
Hi,

There is not special lifecycle in windows forms as there is for webforms
application. The reason being is that the mechanism used by web pages for
serving requests and creation and building control hierarchies is more
complex. Web pages has short life where winforms forms once created leave
until they are no longer needed. In other words there is no cycle in their
life, so you won't find such a document.

There are some event sequences, but they are related to a concrete scenarios
e.g. what is the order of events and virtual method calls when an user
presses a keyboard key, moves the mouse, control verification, etc. Maybe if
you are more specific in your question you can find the answer.

Signature

HTH
Stoitcho Goutsev (100)

Basically

> Thanks for the response. I was actually looking for the document that
> listed
[quoted text clipped - 13 lines]
>> >
>> > thx
jsh02_nova@hotmail.com - 30 Jun 2006 15:32 GMT
Thanks for the response.

There is a certain sequence during initialization, activation, and disposing.

Upon initialization, after the ctor is called, if the control is a Form
type, can you confirm what I believe the event firing sequence is? i.e.,
 Load, HandleCreated, Layout, Paint, ReSize, SizeChanged, Activate,
GotFocus, Shown

Otherwise, I tried to find some time to write a test Form to confirm. I just
thought a document existed somewhere.
 
thx

> Hi,
>
[quoted text clipped - 27 lines]
> >> >
> >> > thx
Mini-Tools Timm - 03 Jul 2006 17:06 GMT
> Upon initialization, after the ctor is called, if the control is a Form
> type, can you confirm what I believe the event firing sequence is? i.e.,
>   Load, HandleCreated, Layout, Paint, ReSize, SizeChanged, Activate,
> GotFocus, Shown

As stated in another response, the order of events can depend on the user's
interaction with the form.  However, if you simply open a form then close it
again, the form's events occur in the following order:

Load
Layout
VisibleChanged
Activated
Paint
Closing
Closed
Deactivate

Signature

Timm Martin
Mini-Tools
.NET Components and Windows Software
http://www.mini-tools.com


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.