Click here to Skip to main content
15,908,015 members
Home / Discussions / C#
   

C#

 
AnswerRe: Switching to Embedded programming? Pin
Luc Pattyn20-Jan-10 1:10
sitebuilderLuc Pattyn20-Jan-10 1:10 
Questionerror Pin
djsproject19-Jan-10 20:40
djsproject19-Jan-10 20:40 
AnswerRe: error Pin
Estys19-Jan-10 20:51
Estys19-Jan-10 20:51 
AnswerRe: error Pin
Abhinav S19-Jan-10 21:52
Abhinav S19-Jan-10 21:52 
QuestionMessage Removed Pin
19-Jan-10 20:39
prithaa19-Jan-10 20:39 
GeneralRe: Update method problem Pin
Abhinav S19-Jan-10 21:56
Abhinav S19-Jan-10 21:56 
GeneralRe: Update method problem Pin
prithaa20-Jan-10 6:25
prithaa20-Jan-10 6:25 
QuestionHow to avoid repeated output statement... Pin
<<Tash18>>19-Jan-10 20:28
<<Tash18>>19-Jan-10 20:28 
AnswerRe: How to avoid repeated output statement... Pin
Calla19-Jan-10 20:38
Calla19-Jan-10 20:38 
GeneralRe: How to avoid repeated output statement... Pin
<<Tash18>>19-Jan-10 20:41
<<Tash18>>19-Jan-10 20:41 
AnswerRe: How to avoid repeated output statement... Pin
Martin#19-Jan-10 21:04
Martin#19-Jan-10 21:04 
GeneralRe: How to avoid repeated output statement... Pin
<<Tash18>>19-Jan-10 21:16
<<Tash18>>19-Jan-10 21:16 
AnswerRe: How to avoid repeated output statement... Pin
Martin#19-Jan-10 22:06
Martin#19-Jan-10 22:06 
GeneralRe: How to avoid repeated output statement... Pin
<<Tash18>>19-Jan-10 23:06
<<Tash18>>19-Jan-10 23:06 
GeneralRe: How to avoid repeated output statement... Pin
Martin#19-Jan-10 23:23
Martin#19-Jan-10 23:23 
AnswerRe: How to avoid repeated output statement... Pin
Martin#19-Jan-10 23:46
Martin#19-Jan-10 23:46 
GeneralRe: How to avoid repeated output statement... Pin
<<Tash18>>20-Jan-10 0:02
<<Tash18>>20-Jan-10 0:02 
GeneralRe: How to avoid repeated output statement... Pin
<<Tash18>>20-Jan-10 0:09
<<Tash18>>20-Jan-10 0:09 
GeneralRe: How to avoid repeated output statement... Pin
Martin#20-Jan-10 0:35
Martin#20-Jan-10 0:35 
Questionremote desktop Pin
v_neil8719-Jan-10 19:44
v_neil8719-Jan-10 19:44 
GeneralRe: remote desktop Pin
Calla19-Jan-10 20:29
Calla19-Jan-10 20:29 
GeneralRe: remote desktop Pin
v_neil8719-Jan-10 21:08
v_neil8719-Jan-10 21:08 
GeneralRe: remote desktop Pin
Calla19-Jan-10 21:22
Calla19-Jan-10 21:22 
GeneralRe: remote desktop Pin
v_neil8719-Jan-10 23:24
v_neil8719-Jan-10 23:24 
GeneralRe: remote desktop Pin
Calla20-Jan-10 0:42
Calla20-Jan-10 0:42 
All right.. Here's an example that will make Calculator autostart everytime you log on Windows.
using System;
using System.Text;
using Microsoft.Win32;

namespace AutostartCalc
{
   class Program
   {
      static void Main(string[] args)
      {
         RegistryKey rKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
         rKey.SetValue("Calculator", "\"C:\\Windows\\system32\\calc.exe\"");
         rKey.Close();
         Console.WriteLine("Added calculator to automatic startup. Press any key to continue...");
         Console.ReadKey();
      }
   }
}


You should be able to figure out your own solution by looking at this. Good luck!

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.