TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
spots Knight
NA
35
2.8k
Running code on Exit with X
Jan 14 2014 4:22 PM
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).
Reply
Answers (
1
)
Searching Database using Dataset in C#
Change keyboard layout by C# code