Hi,
I'm a VFP guy, just getting a handle on C#.
I have a Winform, containing some custom controls (assemblies of buttons, labels and text boxes).
I have an event being created (when a telephone call is received) and at that time I change some text on one of the custom controls.
So far, so good - all works well.
Now, when the phone rings, I want the line status text on my custom control to flash 'Ringing' rather than just display the word. So, I have added a timer that runs every second (when enabled) and changes the ForeColor of the status label to give a flashing effect.
Except - it doesn't flash.
I think it has something to do with threads. The fact that the timer on the custom control is enabled from an event handler seems to inhibit it's function somehow.
If I set the timer to enabled at design time, then the text flashes from the start, proving that my flash code is OK.
Any suggestions greatfully received.