471,120 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,120 software developers and data experts.

System Reboot Application Load on specific Form VB.NET

17
Greetings All,

Ive been able to initiate a system restart in my VB.NET application on a button click with the following code;
Expand|Select|Wrap|Line Numbers
  1.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.  
  3.         System.Diagnostics.Process.Start("Shutdown", "/r")
  4.  
  5.    End Sub
  6.  
What id like to do is restart the system through Systems.Diagnostic process but then when the system boots to load my application back into the same form (or form of my choice) from which the system restart was called from e.g. form 2/4

I understand this would have to be done through possibly editing a registry file? The application can be placed in Windows Start Up folder but id prefer the app to start back into the desired form.

Any thoughts?

Thanks in advance as always,

Sy
Mar 25 '08 #1
0 1069

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Howard Pinsley | last post: by
3 posts views Thread by dm1608 | last post: by
20 posts views Thread by djc | last post: by
2 posts views Thread by jphelan | last post: by
2 posts views Thread by antonyliu2002 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.