J
Joe Duchtel
Hello -
I have a form that will process some files over a long period of
time. I have it set up to be capable of automatically closing upon
completion (via Me.Close()) but how can I programatically log off the
user too?
The command for this should be
System.Diagnostics.Process.Start("shutdown", "-l") ... right? But
when do I call it? If I call it before Me.Close(), it seems like the
log off will be initiated before the form has been closed.
I looked at the Disposed event but I'm not sure this is the right
place for the "shutdown' either ... any suggestions on how I can do
this gracefully?
Thanks!
Joe
I have a form that will process some files over a long period of
time. I have it set up to be capable of automatically closing upon
completion (via Me.Close()) but how can I programatically log off the
user too?
The command for this should be
System.Diagnostics.Process.Start("shutdown", "-l") ... right? But
when do I call it? If I call it before Me.Close(), it seems like the
log off will be initiated before the form has been closed.
I looked at the Disposed event but I'm not sure this is the right
place for the "shutdown' either ... any suggestions on how I can do
this gracefully?
Thanks!
Joe