Is there a way to make a visual basic application load when windows loads through using code? Thanks.
Printable View
Is there a way to make a visual basic application load when windows loads through using code? Thanks.
Yes. You can write to the registry where windows opens applications on load
and how would you go about doing that? =)
Well...I cant find the registry path right, but you can write to the registry to the run key which holds all the progrems that lods with windows with API calls
ok I've found it. The location in the registry to load application when windows loads is this:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run.
To write to that locations, add the module ive attached
And call it like this:
VB Code:
Dim sKeyPath as String sKeyPath = "Software\Microsoft\Windows\CurrentVersion\Run" Call RegistrySetKeyValue(rrkHKeyLocalMachine, sKeyPath , "Your-App-Name", App.Path & "\" & "AppEXEFile.exe", rrkRegSZ)
Forgot the module: