Startup a Program via The Windows Registry

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Intermediate
Author:
Stephen Pidliskey

Version Compatibility: Visual Basic 5, Visual Basic.NET

More information:
This code will allow your program to run automatically when the computer is turned on. This is all done through the registry.

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

Declarations:

Code: