M
mat
Hi all,
I have a class which extends System.Windows.Forms.TabPage that I add to
a tab control like this:
NoteTabPage newTab;
newTab = new NoteTabPage();
tabControl.Controls.Add(newTab);
It seems to work fine. However, when I try to call a method of the
selected tab, tabControl.SelectedTab.Cut(), I get the following compile
error:
'System.Windows.Forms.TabPage' does not contain a definition for 'Cut'
I understand why I get this, but not how to get around it. I realise
that I could just use a TabPage instead of my class and add a
RichTextBox to it, but where would I then hold the properties?!
Any help would be great,
mat.
I have a class which extends System.Windows.Forms.TabPage that I add to
a tab control like this:
NoteTabPage newTab;
newTab = new NoteTabPage();
tabControl.Controls.Add(newTab);
It seems to work fine. However, when I try to call a method of the
selected tab, tabControl.SelectedTab.Cut(), I get the following compile
error:
'System.Windows.Forms.TabPage' does not contain a definition for 'Cut'
I understand why I get this, but not how to get around it. I realise
that I could just use a TabPage instead of my class and add a
RichTextBox to it, but where would I then hold the properties?!
Any help would be great,
mat.