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!
bigtreeworld 0
Newbie Poster
Recommended Answers
Jump to PostThis should do the trick:
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 End Sub Private Sub frmKeyboard_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Give the form access to key …
Jump to Posti 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 …
All 6 Replies
sknake 1,622
Senior Poster Featured Poster
bigtreeworld 0
Newbie Poster
GeekByChoiCe 152
Practically a Master Poster Featured Poster
bigtreeworld 0
Newbie Poster
sknake 1,622
Senior Poster Featured Poster
bigtreeworld 0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.