Run your Program at Each Startup

Category:
Registry
Type:
Snippets
Difficulty:
Intermediate
Author:
Andrew Chin

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
This piece of code places creates an entry for the running application in the registry key Software\Microsoft\Windows\CurrentVersion\Run, so the application will run every time the current user logs on.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: