Click here to Skip to main content
11,576,667 members (56,336 online)
Rate this: bad
good
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.

Thanks
Vishal Jodh
Posted 5-Dec-12 1:42am
Comments
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
good
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();
        }
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Comments
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 Sergey Alexandrovich Kryukov 251
1 Abhinav S 170
2 DamithSL 155
3 OriginalGriff 105
4 Lucifier Rocks 105
0 OriginalGriff 715
1 Sergey Alexandrovich Kryukov 631
2 Abhinav S 528
3 F-ES Sitecore 420
4 Suvendu Shekhar Giri 365


Advertise | Privacy | Mobile
Web04 | 2.8.150603.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