Tag Archives: 2010

How to restart (shutdown and immediately open) my Application in Visual Basic 2005/2008/2010 and Higher

Click Star to Rate Post
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
 

Microsoft added a pretty cool Subroutine in Visual Basic 2005 under the System.Windows.Forms namespace in the Application class called: “Restart()” All you have to do is run that sub-routine in your code when you want the application to restart. Just simply run like below:

System.Windows.Forms.Application.Restart

'OR Use

 My.Application.Restart()

Doesn’t get any easier than this!

Jason