I have a DesktopCanvas and a timer. The timer calls the canvas.refresh method, but the paint event is not invoked. (The goal is to show some different quotes on the screen every so often.)
Any clues?
I have a DesktopCanvas and a timer. The timer calls the canvas.refresh method, but the paint event is not invoked. (The goal is to show some different quotes on the screen every so often.)
Any clues?
What’s there Period of your Timer?
5 seconds (5000 milliseconds)
Did you try:
MyCanvas.Refresh( True )
which is supposed to force the refresh now, rather than at some point in the future.
I found the problem: I had (accidentally) positioned the canvas off the bottom of the window. Apparently, if it’s not visible it doesn’t get painted.
Things now working.
Thanks, as always.