VB.NET Startup Windows
‘Write to register
Dim regKey As Microsoft.Win32.RegistryKeyregKey
regKey = Registry.LocalMachine.OpenSubKey(“SOFTWARE\Microsoft\Windows\CurrentVersion\Run”, True)
regKey.SetValue(“YourApplicationName”, “YourInstallPath”)
regKey.Close()
If you want to remove from register use this code.
regKey.DeleteValue(“YourApplicationName”, False)
Advertisement
