473,467 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Disable Ctl+Alt+Del; Ctrl+Esc; Ctrl+tab, Alt+Tab, Start button, ctrl+Alt+Del

28 New Member
Dear all friend,
I want disable Ctl+Alt+Del; Ctrl+Esc; Ctrl+tab, Alt+Tab, Start button, ctrl+Alt+Del, lock all keys on the keyboard. Have you ever do it in C#.
Help me.
Thanks for all reply.
Nov 15 '07 #1
10 8524
Shashi Sadasivan
1,435 Recognized Expert Top Contributor
Dear all friend,
I want disable Ctl+Alt+Del; Ctrl+Esc; Ctrl+tab, Alt+Tab, Start button, ctrl+Alt+Del, lock all keys on the keyboard. Have you ever do it in C#.
Help me.
Thanks for all reply.
on the keydown event
do something like
Expand|Select|Wrap|Line Numbers
  1. private void frmWorkshopJobs_KeyDown(object sender, KeyEventArgs e)
  2. {
  3.    if (e.Control == true)
  4.    {
  5.       if (e.KeyData == Keys.Escape)
  6.          e.Handled = true;
  7.    }
  8. }
do that for each scenario you want to cover.
however certain keystrokes which are handled by the OS even before you cannot be stopped (like ctrl + Alt + del, windows button, etc)

cheers
Nov 15 '07 #2
mzmishra
390 Recognized Expert Contributor
This article can help you also
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2143470&SiteID=1
Nov 15 '07 #3
thupham
28 New Member
I have just used the link http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2143470&SiteID=1,
it 's very helpful, but that example can't disable Ctrl+Alt+Del; Alt+tab; and Alt+Esc.
I'm researching this. If you know more, please show me.
Thanks.
Nov 15 '07 #4
Plater
7,872 Recognized Expert Expert
Ctrl+alt+del is supposed to be hardware level (supposed to be...) and isn't supposed to be able to be trapped.
However, there is somewhere where you can "replace" the taskmanager with something else (possibly even nothing?). How I dunno, but I've seen it done.
Nov 15 '07 #5
thupham
28 New Member
Can you help me to disable Ctrl+Alt+Del, Alt+tab, Alt+Esc by C#.
Thanks
Nov 16 '07 #6
Shashi Sadasivan
1,435 Recognized Expert Top Contributor
Can you help me to disable Ctrl+Alt+Del, Alt+tab, Alt+Esc by C#.
Thanks
hi thupham
Please do not double post.
I think your question was answered, but you did not respond to your post
http://www.thescripts.com/forum/thread736791.html
Nov 16 '07 #7
Shashi Sadasivan
1,435 Recognized Expert Top Contributor
Ctrl+alt+del is supposed to be hardware level (supposed to be...) and isn't supposed to be able to be trapped.
However, there is somewhere where you can "replace" the taskmanager with something else (possibly even nothing?). How I dunno, but I've seen it done.
This thread does talk about that, along with 2 other options
Nov 16 '07 #8
thupham
28 New Member
I'm waiting for new reply, but no one answer me how to disable Ctrl+Esc; Alt+Esc; Alt+Tab by C#, and may be I have a mistake on posting, so it have double.
Very Sorry.
Nov 16 '07 #9
CyberSoftHari
487 Recognized Expert Contributor
The link you given is pretty good.
You cannot get the exact answer. Just try you can do with that code.

Or you can get a C++ Dll to do all this things.
Nov 16 '07 #10
thupham
28 New Member
But in that links, I just combine 2 keys, for example Ctrl+Tab, I can combine 3 keys(Ctrl+Alt+Del), I tried but can't do. Help me please.
Thanks
Nov 29 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Greg | last post by:
I am developing an application where I need to secure a workstation for periods of time. I can use BlockInput to stop users from task switching or messing with the keyboard, but I would like to...
0
by: Stefan | last post by:
Hy, a have an application and i must disable the follow combination of keys: ALT+F4 ALT+TAB CTRL+ALT+DEL CTRL+ESC. For ALT+F4 i can disable the conbination with: protected override...
3
by: Stefan | last post by:
Hy, i have an app and i must disable this combination: ALT+F4; CTRL+ALT+DEL; CTRL+ESC;ALT+TAB like this: i find something on Internet and i can block ALT+F4 protected override...
4
by: | last post by:
I want to program a application for user login in windows.Now I has some question about disable the system hotkey(c+a+d,alt+tab,win key.etc.) and limit the mouse cursor in winform How can I do it?...
7
by: | last post by:
And how to lock the mouse? ths!
3
by: Kevin Bilbee | last post by:
I need to know the API call to disable the CTRL-ALT-DEL in a C# windows form. We have created a time clock application to run on a tablet PC to replace the windows shell, we are going to hang it...
4
by: Brad | last post by:
Hello All, I am working on a kiosk application for a library. I do not want users to be able to hit Ctrl-Alt-Delete and exit the kiosk application. I did some searching on the web but did not...
17
by: AAA | last post by:
Hi guys how to disable the function of "ctrl alt delete"
2
by: Mark Callaway | last post by:
Hello I'm trying to make a little windows service which blocks access to some other program, in order to prevent my childrens to play with some of my games. It works perfectly, but the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.