Hi there, I'm creating a program and I need to block out the keyboard completely. Including every button and key combo. Is there a way to do this? I already scoured the internet... any help would be greatly appreciated!
Public Class frmKeyboard
Private Sub frmKeyboard_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
'Stops user key presses
e.Handled = True
Private Sub frmKeyboard_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Give the form access to key presses before the focused control
Me.KeyPreview = True
Protected Overrides Function ProcessDialogKey(ByVal keyData As System.Windows.Forms.Keys) As Boolean
'This stops it from processing keys such as tab/enter
This will not stop CTRL+ALT+DEL and keys that windows handle.
i would say thats pretty dangerous to block windows hotkeys. coz sometimes they are your last chance :p
anyway first i thought using the unregisterhotkey API would be the way to go but realised thats impossible to get the atomID of each hotkey so i did some google and found this article
Modifying your system’s registry can cause serious problems that may require reinstalling your Windows OS.
i just can second that. make sure it is REALLY needed in your application.
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"