Hello everyone,
I am using C# on a Pocket PC 2003 project based on .Net Compact Framework of Visual Studio 2005. I want to re-draw some controls of a Form (Window) at a regular interval (for example, change the title of some Label or something similar). The issues I met with are,
1. My application has several Forms/Windows. How to check whether the specific Form/Window (which I want to re-draw) is active If the Form/Window is not active, I think I should not re-draw the Form/Window. Am I correct Or, whether or not the Form/Window is active, I should always re-draw the Form/Window
2. Any code samples specific for C# of .Net Compact Framework
thanks in advance,
George

how to re-draw controls on a Form at a regular interval?
ramgarge
You can setup a timer and invalidate control(s) from it. Setup timer from Activated event and shut it down from Deactivate event so it would only work on active form. If you just need to “change title or some Label”, simply change the title or label from the timer’s event, control would redraw itself to reflect this change. No, there's nothing specific to NETCF in all that.
Kent Harris
Thank you Ilya! This is what I want.
regards,
George