I have code like this:
public class MyControl: Control
{
public MyControl()
{
this.BackColor = MyStandardBackC olor;
}
public bool ShouldSerialize BackColor()
{
return BackColor != MyStandardBackC olor;
}
public void ResetBackColor( )
{
BackColor = MyStandardBackC olor;
}
}
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.
public class MyControl: Control
{
public MyControl()
{
this.BackColor = MyStandardBackC olor;
}
public bool ShouldSerialize BackColor()
{
return BackColor != MyStandardBackC olor;
}
public void ResetBackColor( )
{
BackColor = MyStandardBackC olor;
}
}
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.
Comment