It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum Script-archive

Make you're program start when comp starts (vb08)

Share your completed scripts.

Moderator: dafunkymunky

Make you're program start when comp starts (vb08)

Postby n00bl3z on Thu Sep 24, 2009 9:17 pm

Make SURE you put
Code: Select all
Imports Microsoft.Win32
at the VERY top of the project
Pic:Click the picture
Image

IF you want this to write when the project starts, double click the form and put the following code there:
Code: Select all
Private Sub setregistryvalue()       
'Add the executable's path against the application's name.        'Just change the key between (), and thats it.       
Registry.SetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", _                         
Application.ProductName, _                         
Application.ExecutablePath)   
End Sub


for button double click on the button and put the same code.
n00bl3z
 
Posts: 4
Joined: Thu Sep 24, 2009 3:29 am

Who is online

Users browsing this forum: No registered users and 0 guests