Run application on Windows startup option

Posted on 2007-11-25
Last Modified: 2013-12-16

I'm developing an application and I want to have an option that can be changed by the user to determine whether to run the application at startup or not.

How can I do that?

Question by:EEssam
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 22

Expert Comment

ID: 20347448
Write some code to enter a registry startup item.

Just add it when the user selects to run at startup, and delete it, when the select to not run at startup.

LVL 55

Accepted Solution

Jaime Olivares earned 400 total points
ID: 20347451
Yes, you need just to save into the proper registry key:
Have a look to it to see what you have in your computer right now...
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20347478
LVL 22

Assisted Solution

RedKelvin earned 50 total points
ID: 20347485
LVL 22

Assisted Solution

cookre earned 50 total points
ID: 20348252
The first couple of links referred to HKLM.  Since this request is user specific, the one to use is HLCU.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need to find a web event on the IIS server 4 48
Pdf not loading 2 37
Convert a string to date 4 38
Need Help With GDI+ in VB.Net 8 33
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below.…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question