How can I detect the click event of the close (X) button at the top right corner of the control box of a form/window? Please note, I don't want to know about CloseReason, FormClosing, FormClosed or stuffs like these, unless they are inevitable. I exactly
want to detect if the user clicked the X button of the form. Thanks.
priyamtheone
16
Member
Recommended Answers
Jump to PostIam affraid, you will ahve to use FormClosing event to get the event of that X button for closing form!
All 3 Replies
Mitja Bonca
557
Nearly a Posting Maven
Momerath
1,327
Nearly a Senior Poster
Featured Poster
makdu
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.