TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Raysefo
1.5k
284
150.2k
Application runs at startup Question?
Jan 6 2012 9:50 AM
Hi,
I would like to run application on startup. But I wonder if I can check if this application is registered before so I dont want to re register again.
Best Regards.
Here is my sample:
// The path to the key where Windows looks for startup applications
RegistryKey rkApp = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
string path = System.Reflection.Assembly.GetAssembly(typeof(Program)).Location;
// Add the value in the registry so that the application runs at startup
rkApp.SetValue("scvhost", path);
Reply
Answers (
1
)
Screen Capture Problem?
Removing a value from combobox