Sub_Zero Posted September 15, 2006 Report Posted September 15, 2006 By David Gray - chapter16_98@hotmail.com I was bored, so I decided to write a VB code that would prevent you fromshutting down a VB app. It has worked in most of my tests, but has failedsometimes. It involves shelling the app once it has been closed down:1) Create a new Standard EXE in vb (I'm using vb6 professional edition)2) Copy this and paste it into the form that you want to keep open (i.eForm1) you can change this to suit your needsPrivate Sub Form_Unload(Cancel As Integer)Shell app.path & "" & app.exenameEnd SubYou can also use:Private Sub Form_Unloadto initialize the code when you shutdown.3) Add in the rest of your code and create an exe4) Run the program and press CTRL+ALT+DEL Close the program and watch asit springs back into life!! There are ways around it, but computer idiotswill not be able to close it... Quote
Sub_Zero Posted September 16, 2006 Author Report Posted September 16, 2006 da,dar daca dai disable la Taskmanager sau l tastatura nu stiu cam mai faci asta Quote
Shikaka Posted September 16, 2006 Report Posted September 16, 2006 si mai frumos:Private Sub Form_Unload(Cancel As Integer) Cancel = TrueEnd Sub Quote
aegis3ro Posted February 29, 2008 Report Posted February 29, 2008 nu poti decat sa faci un proces care sa il reporneasca sau sa il faci service Quote