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

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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.
 
Back
Top