|
|
|
|
![]() ![]() |
Sep 23 2005, 09:25 PM
Post
#1
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 22 Joined: 23-September 05 Member No.: 12,187 |
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? |
|
|
|
Sep 26 2005, 09:26 PM
Post
#2
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 38 Joined: 26-September 05 Member No.: 12,276 |
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 Long Private Sub disablekeys(disable As Boolean) SystemParametersInfo 97, disable, CStr(1), 0 End Sub Private Sub disablek_Click() disablekeys True End Sub Private Sub enablek_Click() disablekeys False End Sub |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 8th September 2008 - 09:12 AM |