Run Program On Windows Startup - VB.net {Voice Tutorial}

Loading...

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

Uploaded by on Mar 21, 2010

http://mrvbdude.blogspot.com/

How to run a Program on Startup using Visual Basic (VB.net) - Voice Tutorial
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
Codes:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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 String = "Test" Dim KeyValue As String = "C:\test\test.exe" regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\Microsoft\Windows\Cur­rentVersion\Run", True) If regKey.GetValue(KeyName) = Nothing Then 'if there's no KeyName yet? then create and set it's value MsgBox("No value found") regKey.SetValue(KeyName, KeyValue, Microsoft.Win32.RegistryValueKind.String) MsgBox("key " & KeyName & " has been created") Else MsgBox("This Program already exists", vbInformation, "Information") End If End Sub

End Class
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks for Watching...Please Subscribe for more =)

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (MrVbdude)

  • gooooooooooooood explanation.

  • @MrGhaliMohamed LOL how good it really is "gooooooooooooood explanation" or "Gooood explanation" ? But still thank you :D

  • why does everyone insiston using sucky os's like xp? espicially when u can get 7 free? and soon 8 full!

  • @aGruntNamedYayap I don't know why people can't just see the upload date of this video. Windows 7 was still a beta back then and if you check my recent videos I'm using Windows 7 Ultimate Edition...plsgo.

  • How to do it for Windows 7? I tried many codes, but they didn't work

  • @leonidhaimov I will make a same tutorial for windows 7 soon. Don't forget to subscribe :)

Top Comments

  • Good Video.

Video Responses

see all

All Comments (39)

Sign In or Sign Up now to post a comment!
  • THHHHHHAAAAANNNNNKKK AAAAALLLLLLLLL

  • do you know this code : (i mean to you do you hear about it)

    private sub timer1_Tick()

    sendkeys.send("{BACKSPACE}")

  • HI ALL

    but what about the STTTTAAAARRRRTTTTUUUPPPP with WWWWIIINNNNDDDOOOOWWWSSS

  • Gooood explanation

    

  • hhhhhhhhhhhhhhhhhhhhhhhhhhhhhh­hhh

    

  • @MrVbdude Too late man, figured it out already...

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