This tutorial is about making a app that starts when you computer does it :)
Codes:
Imports Microsoft.Win32
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim regKey As Microsoft.Win32.RegistryKey Dim KeyName As Object = "Application" Dim KeyValue As String = "C:\" regKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True) regKey.SetValue(KeyName, KeyValue, Microsoft.Win32.RegistryValueKind.String) MsgBox("key " & KeyName & " has been created") End Sub
End Class
www.teamnibic.com
SUBSCRIBE, LIKE & COMMENT!
i have a error this
regkey.SetValue(keyname, valuename, RegistryValueKind.String)
null exception is unhandeled
i use vb 2010
what should i do?
professorxanonymous 3 months ago
@professorxanonymous Try downloading the project :)
TeamNiBiC 3 months ago
thaxx worked for me ;)
TheWatikz 5 months ago
@TheWatikz Great! :) NP!
TeamNiBiC 5 months ago
you are an idiot this code is bugged
gtasathehacker 7 months ago
@gtasathehacker Or u did it wrong ;)?
TeamNiBiC 3 months ago