J
John S
I am trying to use this method to capture a user pressing the "X" in the
upper right-hand corner. I tried using the following code, but anytime I
exit the program it gets hit no matter what I press.
if(m.Msg == 0x0010) { //X button location
MessageBox.Show("Yeah i am close button here");
}
base.WndProc(ref m);
}
upper right-hand corner. I tried using the following code, but anytime I
exit the program it gets hit no matter what I press.
if(m.Msg == 0x0010) { //X button location
MessageBox.Show("Yeah i am close button here");
}
base.WndProc(ref m);
}