Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 11th, 2006, 11:13 PM   #1
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 380
Rep Power: 3 King is on a distinguished road
C# From Question

How can I view the event code when you press the 'X' button in the top right hand corner of the form to close it? I need to add some code to that event handler and don't even see where it is. I am using VS 2005; Thanks.
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Old Jun 11th, 2006, 11:18 PM   #2
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
In design mode, you need to add the event. Under the properties viewer, click the littlw lighting symbol (events), and you should see a serioes of events for the form. (btw, you must have the form selected else you will get different events). From there, look for FormClosed, or FormClosing. They are to different events, and trigger at different times. Read the description and use them accordingly
Booooze is offline   Reply With Quote
Old Jun 11th, 2006, 11:53 PM   #3
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 380
Rep Power: 3 King is on a distinguished road
I figured I would have to do something like that, thanks.
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:12 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC