Greetings All,
Ive been able to initiate a system restart in my VB.NET application on a button click with the following code;
What id like to do is restart the system through Systems.Diagnos tic 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
Ive been able to initiate a system restart in my VB.NET application on a button click with the following code;
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
System.Diagnostics.Process.Start("Shutdown", "/r")
End Sub
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