Is there any way to freeze the screen and show only one form active (only that form can receive input from user).
The example of my description is like when windows user clicks shutdown from start menu. It shows choices like shutdown, restart, etc and not allows user to do input other than to that form.
or when using Tune Up registry optimizer it will ask you to close all other running applications , then it shows up a Blue Window with a progress bar , but the user can neither close this window or do other input .
I know about modal forms , but is there any other way to do that .
Any Idea?
To actually stop input to other apps you probably need to use SetWindowsHookEx() to install a global message hook (I think you want to use the WH_CBT option) in order to toss messages sent to other windows (of course you’re going to need Admin. privileges to do that).
However, there’s another way: a) have your program take a screenshot of the display, b) post-process the bitmap to “gray” it out, and c) show your application completely full-screen (there’s easy methods of sizing the app to overwrite even the taskbar) and your set your app form’s background to be the screenshot you took in step A and grayed-out in step B. What you wind up with is a simple image display that looks quite like the user’s desktop, but the windows are of course not clickable.