Clock !

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I had to made a form that displays the hour all the time, I mean like a clock. But, I don't know if there is a component for that or may be it has to be done with an API call, if so, how to do it?, Does anyone has an idea

Thanks a lot
Carmen
 
* =?Utf-8?B?Q2FybWVu?= said:
I had to made a form that displays the hour all the time, I mean like
a clock. But, I don't know if there is a component for that or may be it
has to be done with an API call, if so, how to do it?, Does anyone has
an idea ?

Place a timer control on your form ('System.Windows.Forms.Timer'), set
its interval to 500 ms. Whenever the timer fires, you can update the
displayed time. You can get the current time using 'DateTime.Now.*'.
 
Back
Top