I am creating a child window to login in my application. I already disabled the X button, however, if the user types on the keyboard CTRL + SHIFT + F4 closes the window and jump the login phase. I can not stop it. can anyone help me please?
Asked
Active
Viewed 2,051 times
1
-
sorry, after i posted the answer, i find the solution: in handler of event Closing of the ChildWindow i put this code e.Cancel = !((bool)DialogResult); and all works. – majinb Dec 14 '10 at 19:56
-
You may experience difficulty closing the form using the above. More info here http://stackoverflow.com/questions/14943/how-to-disable-alt-f4-closing-form. Applies to WinForms but should set you on the right path. – Martin Dec 14 '10 at 21:08