Window on the top of desktop

msreekm
msreekm used Ask the Experts™
on
I need to bulid a form which will stay on top of the desktop, which will have a password, only after authentication user should be able to see the desktop (like a screen saver application),Can anyone hep me?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Make it full screen and set the form's 'TopMost' property to 'true'

Author

Commented:
Will it prevent the users from accessing other desktop icons or using alt-del to switch between windows taks??

Author

Commented:
Will it prevent the users from accessing other desktop icons or using alt-del to switch between windows taks??
Commented:
When the form is maximized and on top, the various alt- navigation keys will allow the focus to shift to other windows, but your form will still be on top, albiet not the current window.  What this means is that a user could do other things - they just can't see what they're doing.

Try it, you'll see what I mean.
The full-screen, topmost form solution is good.

If you absolutely need to stop users from alt-tabbing etc, then have a look at the thread http://www.experts-exchange.com/Security/Win_Security/Q_20381654.html which covers this area. If you decide to go with a windows hooks solution, you should note that a recent MSDN magazine article (October 2002 I think) shows you how to encapsulate windows hooks in a C# class.

The only other solution I can think of is that you write your app so that it replaces Explorer as the windows shell. That's advanced programming though, so probably best saved until you have a burst of hacker machismo :-)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial