B
Brett Romero
I have a custom control that defines
this.AlternatingBackColor = System.Drawing.Color.Lavender;
in its constructor. When I add this control from my VS.NET 2003
toolbar and drop it onto a form, the same line of code is generated in
the form's InitializeComponent():
this.customGrid.AlternatingBackColor = System.Drawing.Color.Lavender;
which generates a run time error:
An unhandled exception of type 'System.ArgumentException' occurred in
system.windows.forms.dll
Additional information: The data grid table styles collection already
contains a table style with the same mapping name.
How do I prevent the wincode from being generated for the custom
control?
Thanks,
Brett
this.AlternatingBackColor = System.Drawing.Color.Lavender;
in its constructor. When I add this control from my VS.NET 2003
toolbar and drop it onto a form, the same line of code is generated in
the form's InitializeComponent():
this.customGrid.AlternatingBackColor = System.Drawing.Color.Lavender;
which generates a run time error:
An unhandled exception of type 'System.ArgumentException' occurred in
system.windows.forms.dll
Additional information: The data grid table styles collection already
contains a table style with the same mapping name.
How do I prevent the wincode from being generated for the custom
control?
Thanks,
Brett