none
Unclosable form in VB.NEt RRS feed

  • Question

  • I wan 2 design a form in VB.NET that can't be closed by any way.
    I mean if once my project starts no one can stop it by any way, not by any out of Alt+F4, Alt+Ctrl+Del, Close button on tittle bar etc....
    Can any one help me pleeeeeeeeeeeeeease......?????????
    Tuesday, July 24, 2007 8:11 AM

Answers

  • Run the application as a background service and stop it from getting displayed in the process tab of taks manager.

    Tuesday, September 11, 2007 5:25 AM
  • As Bipin pointed out, writing a Windows Service which is started when the computer loads should solve your problem to a certain extent. Since services generally do not have UI associated with them, they are not visible as a window and you cannot stop them using Alt+F4. However someone can go to the services manager (%SystemRoot%\system32\services.msc) and stop the service.

    Not very sure about whether or not how you can hide the service from the Task Manager. You can search on the net to find this information.

    Friday, September 14, 2007 4:18 AM

All replies

  •  

    I wonder what application you are developing !!!
    Thursday, August 9, 2007 11:44 AM
  • Dear Raghuram,

    I m going to develope Auto-Shutdown program. But I want to make it compulsary run on startup of windows. I want it not to be stoped by any way.
    Pls if u know the solution tell me............
    Friday, August 10, 2007 3:28 AM
  • Run the application as a background service and stop it from getting displayed in the process tab of taks manager.

    Tuesday, September 11, 2007 5:25 AM
  • But Bipin How can I do tis.

    Can u pls explain  it in details plz????

    Thursday, September 13, 2007 6:56 PM
  • As Bipin pointed out, writing a Windows Service which is started when the computer loads should solve your problem to a certain extent. Since services generally do not have UI associated with them, they are not visible as a window and you cannot stop them using Alt+F4. However someone can go to the services manager (%SystemRoot%\system32\services.msc) and stop the service.

    Not very sure about whether or not how you can hide the service from the Task Manager. You can search on the net to find this information.

    Friday, September 14, 2007 4:18 AM
  • To put it simply, there is no absolute way to make a process non-terminatable. You can overcome this to a certain extent but before I go into that, please tell me the exact reason why you want this functionality. In many cases, there are easier and more practical workarounds. So if you could tell me the exact purpose of your application and the scenario in which you would want to implement this feature, you might get a better answer.

    Friday, September 14, 2007 12:59 PM