Hi All,
I can use a timer and I can draw a rectangle with the paint event and fill it, but how can I use this timer with graphics.
Thanks,
sparrow1
Printable View
Hi All,
I can use a timer and I can draw a rectangle with the paint event and fill it, but how can I use this timer with graphics.
Thanks,
sparrow1
This is kind of an open ended question. Could you be more specific? What, with graphics, do you need to do?
Hi Hack,Quote:
Originally Posted by Hack
I want to use a timer to draw a rectangle and not directly with a button.
It could also be an ellipse or triangle, the purpose is the same.
Secondly, I want to change the color of that rectangle after some time set by a timer.
That's way I made a more general question about using a timer and graphics.
Thanks,
sparrow1
You still do the drawing in the paint event handler of the control, and just invalidate or refresh the control on the timer.tick event.