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 / Languages / C# / June 2007

Tip: Looking for answers? Try searching our database.

C# handling Form events

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sravan_reddy001 - 14 Jun 2007 00:58 GMT
how can we handle the FormClosed and FormClosing events in C#
i am able find those events in VB.NET application Code part.(Form1
Events)

i don't find that in the C3 how can i handle those events
Peter Duniho - 14 Jun 2007 01:58 GMT
> how can we handle the FormClosed and FormClosing events in C#
> i am able find those events in VB.NET application Code part.(Form1
> Events)
>
> i don't find that in the C3 how can i handle those events

You can write the code explicitly, for example:

    Form form = /* some initialization here */;

    form.Closed += MyEventHandlerMethod;

Or you can find the list of events in the properties window by clicking on  
the "Events" button (looks like a lightning bolt).  Double-click in an  
event's edit box to have a new empty event handler created and added to  
the event.

Pete
Benny Skjold Tordrup - 14 Jun 2007 11:49 GMT
If you are working in a form class, override OnClosed and OnClosing instead.

Best regards,

Benny

> how can we handle the FormClosed and FormClosing events in C#
> i am able find those events in VB.NET application Code part.(Form1
> Events)
>
> i don't find that in the C3 how can i handle those events

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.