Restart Program From Code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hey all, help needed here.
I'm trying to restart the program upon clicking on the logout button. How do I recall the main() function in the code?

Thanks
 
You do a Process.Start to reload your application as you are exiting. If you
mean an actual
Windows logout, and not an application exit, then you'll have to do quite a bit
more.

In Whidbey, the Windows Forms guys have added a Restart method for relaunching
the
current program and exiting the currently running instance.


--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers

aLvInDaHoUsE said:
Hey all, help needed here.
I'm trying to restart the program upon clicking on the logout button. How do I
recall the main() function in the code?
 
Back
Top