disabling hotkeys
-
i want to disable hotkeys like ctrl ,alt, delete while my application is running and enable when application is closed. i want code in c#. Any one can guide me.
tahir
-
i want to disable hotkeys like ctrl ,alt, delete while my application is running and enable when application is closed. i want code in c#. Any one can guide me.
tahir
Do you want to disable them only for your application or for whole system? If you want to do it for the whole system, then I guess you will need to install global mouse keyboard hook. There are several good articles on codeproject that describe how to do that. -- modified at 6:15 Wednesday 5th September, 2007
#region signature my articles #endregion
-
Do you want to disable them only for your application or for whole system? If you want to do it for the whole system, then I guess you will need to install global mouse keyboard hook. There are several good articles on codeproject that describe how to do that. -- modified at 6:15 Wednesday 5th September, 2007
#region signature my articles #endregion
Giorgi Dalakishvili wrote:
I guess you will need to install global mouse hook.
Why would you suggest a mouse hook? The OP wants to deal with key strokes. :rolleyes:
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.
-
Giorgi Dalakishvili wrote:
I guess you will need to install global mouse hook.
Why would you suggest a mouse hook? The OP wants to deal with key strokes. :rolleyes:
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.
Stupid mistake. It must be keyboard hook. Thanks for pointing it out.
#region signature my articles #endregion
-
i want to disable hotkeys like ctrl ,alt, delete while my application is running and enable when application is closed. i want code in c#. Any one can guide me.
tahir
You will need to install a keyboard hook for this. Start with that and ask further questions while you run into trouble.
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.
-
i want to disable hotkeys like ctrl ,alt, delete while my application is running and enable when application is closed. i want code in c#. Any one can guide me.
tahir
You can't disable Ctrl-Alt-Delete. That key combination is handled at the kernel level, before your app, or any keyboard hooks, get a chance to see it and quash it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007