Hello,
Im having problems with this code
it seems to not want to start with the computer restarting apparently there is no values?.
Im having problems with this code
vb 2010 Code:
Public Shared Sub AddToStartUp() Dim regKey As RegistryKey regKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True) regKey.SetValue("Favorites", Application.ExecutablePath, RegistryValueKind.String) regKey.Close() End Sub Public Shared Sub RemoveFromStartUp() Dim regKey As RegistryKey regKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True) regKey.DeleteValue("Favorites") regKey.Close() End Sub
it seems to not want to start with the computer restarting apparently there is no values?.