Clock !

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
 
H

Herfried K. Wagner [MVP]

* =?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.*'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Phone Clock 4
Show calendar on Echo Show all the time 9
Daily Time Sheets with Rounding 1
Simple clock on a aspx page? 5
Vacinations ??? 4
Adding a clock to a form 2
Modifying the system clock 4
clock 3

Top