Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Locking windows and other keys

Posted on 2006-04-24
2
Medium Priority
?
483 Views
Last Modified: 2008-02-01
I am wondering if there is a better way to do this. I want an application when it runs to inhibit the use of ctl+esc, alt+tab, windows+any, and any other key presses that cause the user to lose focus to the application. I did this many years ago on a Windows 95 by telling the OS that the application was a screensaver using SystemParametersInfo() SPI_SETSCREENSAVERRUNNING. How can I do this for a C# app running on XP?
0
Comment
Question by:larrycolvin
1 Comment
 
LVL 11

Accepted Solution

by:
vo1d earned 500 total points
ID: 16536282
you will have to implement a windows hook for this.
take a look here: http://www.codeproject.com/csharp/NetWin32Hooks.asp
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question