>
>I think Viv is correct that you may need to loop through all the labels and set the ForeColor individually for each label (that's how I understood Viv and this is how it works in VFP as well).>
>Not quite what Viv meant. This is what he said:
>
But bear in mind that, for example, Foreground is an ambient property - if you have specifically set the value in the control itself then it will no longer 'inherit' from the form>
>So, Cecil ... what's most likely happened is that somewhere you're setting Label font colors. Do you have your own Label class? The System Label will automatically inherit the Form's ForeColor. Or perhaps you have labels in a UserControl and you're setting ForeColors there? IAC, that's what you need to look at to find the problem.
>
>~~Bonnie
Plus just one other thing to consider. If you wrote this code in one class and pasted it in another you may not have wired up the evetn handler. Put a break point in this code in the form where it doesn't work and make sure it is actually running.
Tim
Timothy Bryan