
Originally Posted by
TetovaBoy
id dint get how to make this erectly can u assist me a bit easier...?!
where i have to edit that hkey and so on...
I have already said that, you need to do it through the application setup. There one more way to do it. You can use some part of the code from my last post to add your application to the system start up.
vb.net Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
AddAppToStartup()
End Sub
Private Sub AddAppToStartup()
Dim regKey As Microsoft.Win32.RegistryKey
regKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)
regKey.SetValue(Me.GetType.Assembly.GetName.Name, Me.GetType.Assembly.Location)
regKey.Close()
regKey = Nothing
End Sub
Just make sure that it does not conflicts with the Check box code.