Click here to Skip to main content
11,702,890 members (65,325 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#
Hey Everyone

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

Vishal Jodh
Posted 5-Dec-12 1:42am
Krunal Rohit at 5-Dec-12 7:43am
Elaborate your question...
vishal jodh at 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 at 5-Dec-12 8:38am
You can check the time with various internet services. Google will find you lots of information.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Just take a label and simply write this code :
private void timer1_Tick(object sender, EventArgs e)
            Label1.Text = DateTime.Now.ToString();
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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
vishal jodh at 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)

  Print Answers RSS
0 Maciej Los 415
1 Sergey Alexandrovich Kryukov 325
2 OriginalGriff 260
3 CHill60 120
4 Andy Lanng 119
0 OriginalGriff 8,379
1 Sergey Alexandrovich Kryukov 7,587
2 CPallini 4,947
3 Maciej Los 4,501
4 Mika Wendelius 3,566

Advertise | Privacy | Mobile
Web03 | 2.8.150819.1 | Last Updated 5 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100