Q:

How to initialize/start a custom clock program with windows boot?

I have developed a windows based clock program using C#,which has all clock functions like:

Show time in Digital/Analog Format.
Set up Alarm.

I want its service to start with windows boot up, so that I don't have to manually start it every time I logon to Windows.
I would like to know how do i put that service in start up?
For Example: I want the service "ClockService.exe" to run with windows start up, kindly let me know how do I do it.

A:

There is no point in you writing this application as a Windows Service because services cannot show any type of user interface. That means that users will not be able to see the clock face!
You would be better off putting a shortcut to your application into the Startup folder of the user/users who would like to run this program (that way when they log onto Windows, your application will start automatically).
You can find the location to the Startup folder programatically using the following code:
'All users startup folder
Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu)

'Currently logged on user's start-up folder
Environment.GetFolderPath(Environment.SpecialFolder.StartMenu)

