vb.net te programını her bilgisayar açıldığında çalıştırma
Imports Microsoft.Win32
Private Sub SimpleButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SimpleButton2.Click
Dim regKey As RegistryKey
Dim ver As Decimal
regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run\", True)
regKey.SetValue("SecurityFea", appDirectory + "\Lock.exe")
ver = regKey.GetValue("Version", 0.0)
If ver < 1.1000000000000001 Then
regKey.SetValue("Version", 1.1000000000000001)
regKey.Close()
Else
End If
End Sub
Lock exe yazan yere programınızın exe sinin adını
seturityfea yazan yere programın adı veya herhangi birşey
Imports Microsoft.Win32
Private Sub SimpleButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SimpleButton2.Click
Dim regKey As RegistryKey
Dim ver As Decimal
regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run\", True)
regKey.SetValue("SecurityFea", appDirectory + "\Lock.exe")
ver = regKey.GetValue("Version", 0.0)
If ver < 1.1000000000000001 Then
regKey.SetValue("Version", 1.1000000000000001)
regKey.Close()
Else
End If
End Sub
Lock exe yazan yere programınızın exe sinin adını
seturityfea yazan yere programın adı veya herhangi birşey


