Visual Basic 2008/2010 - Auto start form when windows-boots

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,503
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 16, 2010

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\Curr­entVersion\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!

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (TeamNiBiC)

  • i have a error this

    regkey.SetValue(keyname, valuename, RegistryValueKind.String)

    null exception is unhandeled

    i use vb 2010

    what should i do?

  • @professorxanonymous Try downloading the project :)

  • thaxx worked for me ;)

  • @TheWatikz Great! :) NP!

  • you are an idiot this code is bugged

  • @gtasathehacker Or u did it wrong ;)?

see all

All Comments (27)

Sign In or Sign Up now to post a comment!
  • The code in the description is wrong, but the code on the video is correct :)

  • Stupid idiot the code is wrong

  • Are you french or german?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more