![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 380
Rep Power: 3
![]() |
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! |
|
|
|
|
|
#2 |
|
Expert Programmer
|
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
![]() |
|
|
|
|
|
#3 |
|
Professional Programmer
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 380
Rep Power: 3
![]() |
I figured I would have to do something like that, thanks.
__________________
I am Addicted to Linux! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|