how to capture "X" and "OK" button event on a window form?

G

Guest

I am developing an application for WM5.0 in C#. Is there any method by which
i can get the minimize event,means when i click on the "X" button on the form
can i get that event?? and if yes in which function i'll be receiving that
event?
 
G

Guest

Have you tried hooking the WM_CLOSE event using an IMessageFilter class. The
OnDeactivated will always fire even when displaying a messagebox or clicking
the start menu etc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top