R
Rich P
I created a simple custom usercontrol that displays current time and
changes the color of a label control every second. I added a timer
control to my custom control and then added this to a winform app for
testing and for release. It works fine, but I think there is a more
desired way to run a custom control like this than using a timer.
My question is this - Is there is a better/more desired way to run a
clock in a user control than using a timer control? I am thinking like
tapping into the OS for the system clock or tapping into the network
server - I think I saw a sample like that but was not able to get it to
run.
Note: this project is mainly a training project for me.
Thanks in advance for any suggestions or sample code.
Rich
changes the color of a label control every second. I added a timer
control to my custom control and then added this to a winform app for
testing and for release. It works fine, but I think there is a more
desired way to run a custom control like this than using a timer.
My question is this - Is there is a better/more desired way to run a
clock in a user control than using a timer control? I am thinking like
tapping into the OS for the system clock or tapping into the network
server - I think I saw a sample like that but was not able to get it to
run.
Note: this project is mainly a training project for me.
Thanks in advance for any suggestions or sample code.
Rich