how to prevent closure of .net apps if user logs off

how to prevent closure of .net apps if user logs off

Post by a2lzaG9yIG » Wed, 13 Apr 2005 20:05:02


Hi,

I have created a .net app.

all works fine.

but, i want to prevent closure (kill) of this app when the user of the
machine does a 'log off' of windows/xp.

currently what is happening is that when the user does 'log off', the log
off procedure is closing (killing?) all the open apps.

i need to prevent closing of my app in this scenario.

what are my options?
 
 
 

how to prevent closure of .net apps if user logs off

Post by SmFrb2IgQ2 » Wed, 13 Apr 2005 20:09:03

Create a Windows Service instead. Services are not shut down on log off.

HTH, Jakob.