Unable to Unload Form

  • Thread starter Thread starter Larry Dodd
  • Start date Start date
L

Larry Dodd

I am developing an appliction that when running would display the main form
Maximized. I would like to prevent the user from closing this form or
unloading it at all. They should not be able to use the Task Manager or
anything like that to unload it. I have thought about intercepting the keys
pressed by setting the KeyPreview property of the form and them reacting to
them that way. If anyone knows where I can find more information of how to
do what I am trying to accomplish it would ne appreciated.
 
Hello,

Larry Dodd said:
I am developing an appliction that when running would
display the main form Maximized. I would like to prevent the
user from closing this form or unloading it at all. They should not
be able to use the Task Manager or anything like that to unload it.
I have thought about intercepting the keys pressed by setting
the KeyPreview property

You *cannot* capture Ctrl+Alt+Del (this is a SAS (secure attention
sequence)). You will need a GINA DLL (written in C++) in order to do that.

HTH,
Herfried K. Wagner
 
Back
Top