C#(Quit the application) - shift+Ctrl+Q

  • Thread starter Thread starter Dev
  • Start date Start date
D

Dev

Dear Friends,

I have created Application using VC#.

How do to the following tasks?

The user should not be allowed to exit the program: the start menu, end
task and all other ways of exiting the program should be
disabled. The Shift+Ctrl+Q (or other keystroke combination) should be the
only way to exit the program.

I disabled the close button.
If anyone knows ....Please help me....
Any suggestions would be greatly appreciated....

Thanks,
Rajan
 
Dev said:
Dear Friends,

I have created Application using VC#.

How do to the following tasks?

The user should not be allowed to exit the program: the start menu, end
task and all other ways of exiting the program should be
disabled. The Shift+Ctrl+Q (or other keystroke combination) should be the
only way to exit the program.

I disabled the close button.
If anyone knows ....Please help me....
Any suggestions would be greatly appreciated....

Thanks,
Rajan
 
Hai Dev,
Take a look on the Form.Closing event. you can cancel the form closing
request and thus keeping the application
up and running.
HTH
B/rgds
100
 

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

Back
Top