if this writes this key
what would delete that? been trying all sorts
VB.NET:
Private Sub chkStartup_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkStartup.CheckedChanged
If chkStartup.Checked = True Then
Dim AppPath As String = Application.ExecutablePath
Dim CU As Microsoft.Win32.RegistryKey = _
Registry.CurrentUser.CreateSubKey _
("SOFTWARE\Microsoft\Windows\CurrentVersion\Run")
With CU
.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True)
.SetValue("WebRequest", AppPath)
End With
Else
End If
End Sub
what would delete that? been trying all sorts