Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
In Windows Forms project, I create i.e. a custom label control with BackColor set to Red in it's constructor. Now, when I drag this control into form, the designer creates property MyLabel.BackColor = Red. Is there a way to refresh this property automatically, when I change the color in the constructor, cause now it remains Red ?
Posted

1 solution

If you change the color in constructor then you need to rebuild the control. That means your last time 'dragged' control is now diferent control alltogether. So you get to see the old color.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900