Click here to Skip to main content
15,916,378 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Is there any code to freeze the desktop ( all desktop icons and the open windows) on click of a button
any dll or js code or c sharp...is there any way to do this through code..

freeze such that no icons are click-able on the desktop and if any windows are opened then those windows also get disabled and a pop up is displayed with a customized message and an OK button.
this function is needed on the click of a button which is on a aspx page

thanks
Posted
Comments
Prasad Avunoori 8-May-14 5:14am    
Use Modalpopup.
PreetiM 9-May-14 10:08am    
thanks...this can solve my purpose to some extent...but the close button and the address bar which appear in the dialog are not needed ...user can close the dialog and then can access other pages...secondly with the shortcut (windows key + D) user can minimize all the windows and go to the desktop and I dont want the user to access the desktop
Vi(ky 8-May-14 5:14am    
why? and if it is possible then how you will get out of this ?
PreetiM 8-May-14 13:54pm    
only the Start button will be enabled....and I guess with that we can go wherever we want to .....and can do whatever we want....

1 solution

No.
You can't affect items outside the browser - security refuses to allow that for good reasons.

Besides, what makes you think there is a Windows desktop behind the browser? It could be iOS, Android, Linux, ... you can't tell (also for security reasons).

Think about it: if you could do it, so could The Naughty People - and then you wouldn't get a pop up "You won a car!" you'd get a "Give us the money, or your computer stays frozen". And the security hole it - and you - used would be sealed as fast as physically possible.
 
Share this answer
 
Comments
PreetiM 8-May-14 13:49pm    
thanks for the response...I agree with u at some points but there is code available to disable / hide the desktop icons and also to lock the windows and people have used that.....what u are saying should be applicable there also..
Milfje 9-May-14 9:17am    
Maybe if you wrote an actual C# application you could. Not from a website though.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900