[WinForms .net 3.5] How to make an application start when windows starts?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mikeyeli
    New Member
    • Oct 2007
    • 63

    [WinForms .net 3.5] How to make an application start when windows starts?

    Good Day people!

    i need to make an application im making, start when windows starts, i just wanted to ask you how can i do this, or to point me in the right direction.

    Thanks!
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    Put a shortcut to it in the startup folder, or us MSCONFIG

    Comment

    • joedeene
      Contributor
      • Jul 2008
      • 579

      #3
      A simple code to edit the registry for the app to start on startup

      Code:
         Dim oReg As RegistryKey = Registry.CurrentUser
         Dim oKey as RegistryKey = oReg.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)
         oKey.SetValue("MyVBApp", cPGM)
      Now, next, and beyond: Tracking need-to-know trends at the intersection of business and technology

      Comment

      • mikeyeli
        New Member
        • Oct 2007
        • 63

        #4
        Originally posted by joedeene
        A simple code to edit the registry for the app to start on startup

        Code:
           Dim oReg As RegistryKey = Registry.CurrentUser
           Dim oKey as RegistryKey = oReg.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)
           oKey.SetValue("MyVBApp", cPGM)
        http://www.windowsdevcenter.com/orei...tup_code2.html
        Thank you joedeene!
        Exactly what i needed!

        Comment

        Working...