473,544 Members | 1,986 Online
Bytes | Software Development & Data Engineering Community
+ 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 8530
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.microsof t.com/MSDN/ShowPost.aspx?P ostID=2143470&S iteID=1
Nov 15 '07 #3
thupham
28 New Member
I have just used the link http://forums.microsof t.com/MSDN/ShowPost.aspx?P ostID=2143470&S iteID=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

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

Similar topics

5
5898
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 disable Ctrl-Alt-Delete. It seems there seems to be only one real way I know about: Write a replacement Gina Driver to eat the keyboard events I...
0
4495
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 System.Boolean ProcessCmdKey(ref System.Windows.Forms.Message msg,System.Windows.Forms.Keys keyData) {
3
43945
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 System.Boolean ProcessCmdKey(ref System.Windows.Forms.Message msg,System.Windows.Forms.Keys keyData)
4
3547
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? thanks!
7
6481
by: | last post by:
And how to lock the mouse? ths!
3
15360
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 on a wall for associates to clock in and out and check their benefits. I will disable task manager from Domain Policies but I need to disable the...
4
3120
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 find much. Is there a way to Disable Ctrl-Alt-Delete? Thanks Brad
17
1963
by: AAA | last post by:
Hi guys how to disable the function of "ctrl alt delete"
2
2121
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 weakest point, is that they can kill my service by using the task manager. That's why i would like to disable ctrl+alt+del.
0
7426
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7610
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7774
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7712
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5299
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4920
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1843
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
989
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
667
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.