473,386 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Disable the Alt+Tab

Joe
Dear Friends,
How do disable the Alt+Tab,Alt+F4,ctr+Alt+Delete ,Alt+esc,Ctrl+Esc keys
through C# program?
Can anybody give me a clue or sample code?

Advance Thanks,

Thanks,
Joe
Nov 15 '05 #1
3 5849
Why do you need to?

"Joe" <ra********@hotmail.com> wrote in message
news:u2*************@TK2MSFTNGP12.phx.gbl...
Dear Friends,
How do disable the Alt+Tab,Alt+F4,ctr+Alt+Delete ,Alt+esc,Ctrl+Esc keys
through C# program?
Can anybody give me a clue or sample code?

Advance Thanks,

Thanks,
Joe

Nov 15 '05 #2
You need to call an API method:

SystemParametersInfo

I do not have the actual DLL import, but check it out. You need to use

SPI_SETSCREENSAVEACTIVE

to prevent from the key combinations you mention.

Hope this helps.

/Rob
Nov 15 '05 #3
Look at the post "How do convert the vb.net to C#" from john sutor.
It includes source code to do this.

Greetz,
-- Rob.

Joe wrote:
Dear Friends,
How do disable the Alt+Tab,Alt+F4,ctr+Alt+Delete ,Alt+esc,Ctrl+Esc
keys through C# program?
Can anybody give me a clue or sample code?

Advance Thanks,

Thanks,
Joe

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: tom | last post by:
Hello, How can I disable ALT+TAB? I've already done it for ALT+F4 by trapping windows message 16 in the WndProc override of a form. Does anyone know the windows message for ALT+TAB? thanx
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?...
4
by: Adam J. Schaff | last post by:
How can I issue an Alt+Tab command from within VB.NET code? Specifically, I am trying to swap to the next application in the Alt+Tab order in a way that is reversible with a single Alt+Tab to get...
0
by: Seb | last post by:
Hi Hope someone can help I need a way to disable ALT-Tab / ALT-Esc in windows 2k/XP while my form is loaded and I cant seem to find any help on the web. Seb
0
by: HSS | last post by:
Hi, I have created a form in vb.net , I want to disable alt+tab key in my form , How can I ? Any help sincerly appreciated. Hardik Shah
10
by: thupham | last post by:
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.
4
by: CyberSoftHari | last post by:
I did below and it is not showing in task bar but when I press Alt + Tab then it is showing in that list. How to disable there. ShowInTaskbar = false;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.