I have code like this:
public class MyControl: Control
{
public MyControl()
{
this.BackColor = MyStandardBackColor;
}
public bool ShouldSerializeBackColor()
{
return BackColor != MyStandardBackColor;
}
public void ResetBackColor()
{
BackColor = MyStandardBackColor;
}
}
However, I have found that the VS2005 designer sets the control
backcolor to the Microsoft gray after MyControl is constructed. Is
there a way to prevent this from happening, so that my developers do
not have to go and manually reset the BackColor property of every
control?
Is there anyone at Microsoft who might be interested in this problem.
My bug reports are never acknowledged.