p_a 0 Report post Posted September 23, 2005 Is this possible? Number of webpages I visited said - simply no. But having in mind new structure of .NET, I hope there would be a possibility to disable ALT+TAB, or CTRL+ALT+DEL at the webpage.Why to disable it? Sometimes in educational institutions tests and quizes are based on website server with client browsers on students computers. To avoid possibility of starting another program, or changing current application, there should be a possibility of disabling ALT-DEL for example. Is the keyboard combination under protection of the operating system? Share this post Link to post Share on other sites
flyerdball 0 Report post Posted September 26, 2005 This code comes from a Post in developerfusion.uk.... I have myself controlled other keys but not exactly in this fashion. This will work for almost all other keys that you would want to control. Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As LongPrivate Sub disablekeys(disable As Boolean)SystemParametersInfo 97, disable, CStr(1), 0End SubPrivate Sub disablek_Click()disablekeys TrueEnd SubPrivate Sub enablek_Click()disablekeys FalseEnd Sub Share this post Link to post Share on other sites
iGuest 3 Report post Posted July 4, 2009 Code not working !Disable Alt+tab Using .netHave u test your code ?, it does not work at all. I have change Long into integer but it does not work too...-reply by Jacob Share this post Link to post Share on other sites
alexthemans 0 Report post Posted August 29, 2009 Is this possible? Number of webpages I visited said - simply no. But having in mind new structure of .NET, I hope there would be a possibility to disable ALT+TAB, or CTRL+ALT+DEL at the webpage. Why to disable it? Sometimes in educational institutions tests and quizes are based on website server with client browsers on students computers. To avoid possibility of starting another program, or changing current application, there should be a possibility of disabling ALT-DEL for example. Is the keyboard combination under protection of the operating system? May I give you a idea please, I suggest you consider subclassing Form or something similar else to capture and then process some Windows messages. You may have a look at https://support.microsoft.com/en-us/kb/815774. Share this post Link to post Share on other sites