Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey Everyone

I want to develop application like Operating System Clock. ie if System is shut down my Clock will be getting correct Time.

Thanks
Vishal Jodh
Posted
Comments
[no name] 5-Dec-12 7:43am    
Elaborate your question...
vishal jodh 5-Dec-12 7:48am    
Like OS Clock, I want to develop Clock application which will not stop after Computer/System is Shut Down(Getting correct Date And Time when Computer start) and also if some on change the system or BIOS time my Clock won't affected.
Richard MacCutchan 5-Dec-12 8:38am    
You can check the time with various internet services. Google will find you lots of information.

Just take a label and simply write this code :
C#
private void timer1_Tick(object sender, EventArgs e)
        {
            Label1.Text = DateTime.Now.ToString();
        }
 
Share this answer
 
C#
DateTime.Now.TOshortTimeString()

will give the current time
now just on label print the output from method
for testing this paste your exe in windows startup folder so whenever computer started exe will be start and will show u timing
 
Share this answer
 
Comments
vishal jodh 5-Dec-12 8:02am    
But if Suppose Some one Changed the System Date And Time Then......

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900