Solved

Run application on Windows startup option

Posted on 2007-11-25
5
312 Views
Last Modified: 2013-12-16
Hi,

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?

Thanks.
0
Comment
Question by:EEssam
  • 2
  • 2
5 Comments
 
LVL 22

Expert Comment

by:RedKelvin
ID: 20347448
Hi,
Write some code to enter a registry startup item.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2406374&SiteID=1

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

RedK
0
 
LVL 55

Accepted Solution

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

Expert Comment

by:Jaime Olivares
ID: 20347478
0
 
LVL 22

Assisted Solution

by:RedKelvin
RedKelvin earned 50 total points
ID: 20347485
0
 
LVL 22

Assisted Solution

by:cookre
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.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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 is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now