Home All Groups Group Topic Archive Search About
Author
8 Jun 2006 2:51 PM
cj
Any body know a neat trick to put a analog clock on a form that would be
updated by a timer?

Far out in the uncharted backwaters of the unfashionable end of the
Western Spiral arm of the Galaxy lies a small unregarded yellow sun.
Orbiting this at a distance of roughly ninety-eight million miles is an
utterly insignificant little blue-green planet whose ape-descended life
forms are so amazingly primitive that they still think digital watches
are a pretty neat idea.
-- Douglas Adams, The Hitchhiker's Guide to the Galaxy

Author
8 Jun 2006 4:27 PM
Cor Ligthert [MVP]
cj,

In this is a nice sample of a simple anolog clock

http://www.microsoft.com/downloads/details.aspx?FamilyID=ef4289b4-ffcb-40bd-9bfe-95256abd0e13&DisplayLang=en

In code samples windowsform advanced GDI

I hope this helps,

Cor

Show quoteHide quote
"cj" <cj@nospam.nospam> schreef in bericht
news:%23x7TRswiGHA.4040@TK2MSFTNGP05.phx.gbl...
> Any body know a neat trick to put a analog clock on a form that would be
> updated by a timer?
>
> Far out in the uncharted backwaters of the unfashionable end of the
> Western Spiral arm of the Galaxy lies a small unregarded yellow sun.
> Orbiting this at a distance of roughly ninety-eight million miles is an
> utterly insignificant little blue-green planet whose ape-descended life
> forms are so amazingly primitive that they still think digital watches are
> a pretty neat idea.
> -- Douglas Adams, The Hitchhiker's Guide to the Galaxy
Author
9 Jun 2006 2:40 AM
Jeffrey Tan[MSFT]
Hi cj,

Thanks for your post!

To implement an analog clock, you need to use GDI+ to draw the clock
effect.

Besides what "Cor Ligthert" provided, the articles following may provide
you some more information:
"Analog clock control in C#"
http://www.codeproject.com/cs/miscctrl/AnalogClockControl.asp
"http://www.vb-helper.com/howto_net_analog_clock_transparent.html"
http://www.vb-helper.com/howto_net_analog_clock_transparent.html

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.