Hi guys,
I'm trying to implement a TabPage that also has a checkbox displayed with the text (and hence, a boolean state).
I've set the TabControl to OwnerDrawFixed, and managed to display the checkbox using CheckboxRenderer.
I've also
made a custom TabPage class that has an IsChecked property. Now my problem is, how do I get the customized TabControl to work with the customized TabPages? I can display the custom TabPages alright by the following call:
CheckedTabControl1.Controls.Add(New TabPage("Custom Tab"))
(my custom class is also called TabPage)
This displays it, but I can't access the IsChecked property from within the CustomTabControl class, as it says that "'IsChecked' is not a member of 'System.Windows.Forms.TabPage'."
How do I set the CustomTabControl class to consist of my custom TabPages?
Any help would greatly be appreciated.
Cheers,
dabossss
I'm trying to implement a TabPage that also has a checkbox displayed with the text (and hence, a boolean state).
I've set the TabControl to OwnerDrawFixed, and managed to display the checkbox using CheckboxRenderer.
I've also
made a custom TabPage class that has an IsChecked property. Now my problem is, how do I get the customized TabControl to work with the customized TabPages? I can display the custom TabPages alright by the following call:
CheckedTabControl1.Controls.Add(New TabPage("Custom Tab"))
(my custom class is also called TabPage)
This displays it, but I can't access the IsChecked property from within the CustomTabControl class, as it says that "'IsChecked' is not a member of 'System.Windows.Forms.TabPage'."
How do I set the CustomTabControl class to consist of my custom TabPages?
Any help would greatly be appreciated.
Cheers,
dabossss