I need some help ..
i want to disable alt+tab .. and other shortcut keys to prevent the user from closing it unless you logout of the program..
marvin_1
0
Newbie Poster
Recommended Answers
Jump to PostHi
Why would you want to do this? To what purpose?
It is generally bad practice to stop the user from being able to control their own machine. Also, this type of code can be used for malicious purposes (not suggesting that is your intent) and if given the solution, …
Jump to PostSet your form's KeyPreview property to True and test for the key combinations you want to prevent in its KeyDown event, then set e.SuppressKeyPress = True
All 7 Replies
djjeavons
113
partis vestri scientia
Minimalist
96
Posting Pro
marvin_1
0
Newbie Poster
djjeavons
113
partis vestri scientia
hightechka
0
Newbie Poster
iPoor
0
Newbie Poster
djjeavons
113
partis vestri scientia
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.