Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ColorDialog doesn't seem to work on WinForm
Message
From
04/04/2010 18:56:07
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
04/04/2010 12:41:19
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01458618
Message ID:
01458669
Views:
34
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform