Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Running code on Exit with X
spots Knight
Jan 14 2014 4:22 PM
929
Reply
I have code that I run if they use the exit button, but I want to trigger the same code if they use the red X to close the window. I've tried adding a handler to This.Close but I get an error because it is a 'Group Method'.
How can I catch the form close event so that my code always runs. (I don't want to just hide the X unless there is NO other way to resolve it).
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Searching Database using Dataset in C#
Change keyboard layout by C# code