Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6560915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:31:23+00:00 2026-05-25T13:31:23+00:00

So, i have builed a winforms that just open a new program. The code

  • 0

So,

i have builed a winforms that just open a new program.

The code that is in the winform is this:(if anyone needs)

Process a;

Process a = Process.Start("notepad.exe");

BUT.

i need to know how can i say to the program to start with Windows Start up. Like skype do, or any other program.

So.

  1. I builed a winforms app.
  2. I did a start process.
  3. now i need help with doing that the program will strat with windows.

The only important thing, is that the program will allow me to chose i want her to start with windows or not. so, if anyone give me functions, please, give me on\off functions. THANKS ALLOT!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:31:23+00:00Added an answer on May 25, 2026 at 1:31 pm

    If you want to automatically start an application on Windows startup you must register it in the Windows Registry.

    You need to add a new value to the following registry key:

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    

    which will start the application for the current user

    or to the key

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run 
    

    which starts the application for all users

    The following example will start the application for the current user:

    var path = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Run";
    RegistryKey key = Registry.CurrentUser.OpenSubKey(path, true);
    key.SetValue("MyApplication", Application.ExecutablePath.ToString());
    

    Just replace the line second line with

    RegistryKey key = Registry.LocalMachine.OpenSubKey(path, true);
    

    if you want to automatically start the application for all users on Windows startup.

    If you want to disable this so that the application won’t start automatically, just remove the registry value.

    var path = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Run";
    RegistryKey key = Registry.CurrentUser.OpenSubKey(path, true);
    key.DeleteValue("MyApplication", false);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

WinForms, .NET 3.5 I have a ComboBox that needs to display a growing list
I have build C# program that work with RAPI (communication to PPC or WinCE)
I have an existing C# 3.0 WinForms project with .NET 3.5 that talks to
I have a solution that has a plain old asp.net website and a winforms
We code in C# using VS2008 SP1. We have a server that runs Team
We have an MSI installer for a .Net WinForms app for Windows XP that
I have to build a program that will allow me to track from a
I have a WinForms app that uses the Settings feature of .NET 2, but
I have a program that contains a number of icons in an Icons folder
Background: I have a winform application written in VB.NET that uses a WebService to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.