misterstick
Programmer
i'm deriving a class to extend DataGridTextBoxColumn to include complex custom formatting.
using visual studio as an editor, in the body of the class i type "override" and press spacebar, and intellisense drops down a list of the available overridable stuff.
i press tab to select one and it writes skeleton code for me.
when i come to compile, however, i get the following error:
[tt].\DataGridTextBoxXColumn.cs(18): 'CLBLF.Controls.DataGridTextBoxXColumn.Edit(System.Windows.Forms.CurrencyManager, int, System.Drawing.Rectangle, bool)': cannot change access modifiers when overriding 'protected' inherited member 'System.Windows.Forms.DataGridColumnStyle.Edit(System.Windows.Forms.CurrencyManager, int, System.Drawing.Rectangle, bool)'
[/tt]
change access modifiers? i did no such thing. what on earth is going on?
if you're not allowed to override protected members, why does intellisense taunt you in this way?
mr s. <
using visual studio as an editor, in the body of the class i type "override" and press spacebar, and intellisense drops down a list of the available overridable stuff.
i press tab to select one and it writes skeleton code for me.
when i come to compile, however, i get the following error:
[tt].\DataGridTextBoxXColumn.cs(18): 'CLBLF.Controls.DataGridTextBoxXColumn.Edit(System.Windows.Forms.CurrencyManager, int, System.Drawing.Rectangle, bool)': cannot change access modifiers when overriding 'protected' inherited member 'System.Windows.Forms.DataGridColumnStyle.Edit(System.Windows.Forms.CurrencyManager, int, System.Drawing.Rectangle, bool)'
[/tt]
change access modifiers? i did no such thing. what on earth is going on?
if you're not allowed to override protected members, why does intellisense taunt you in this way?
mr s. <