Loading...

Visual Basic 2008 Tutorial - How to make your VB programs startup automatically when windows starts

35,914 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Jun 8, 2009

How to make the programs you create in Visual Basic 2008 start up when windows does (the complete code is below)
My email: sam@salmonator.com
My website: www.salmonator.com

Code:

Imports System.IO
Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim FileName As String Dim FilePath As Object Dim RegistryKey As Object FileName = "StartupTutorial.exe" FilePath = Path.GetFullPath(FileName) RegistryKey = CreateObject("WScript.Shell") RegistryKey.RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\StartupTutorial", FilePath) End Sub
End Class

Loading...

When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...