Similar to how browsers close tabs, I was wondering if you can add a button to the header of a TabPage.
Would it use a custom TabPage renderer
Would I be able to add a button on the tab itself
Similar to how browsers close tabs, I was wondering if you can add a button to the header of a TabPage.
Would it use a custom TabPage renderer
Would I be able to add a button on the tab itself
You can find sample implementations here:
A TabControl with tab page closing capability
Implementing Close button in Tab Pages
FireFox-like Tab Control
Basically, you will write code that draws the button in the appropriate place (e.g. by overriding the
OnDrawItem
function), and then write some more code that handles clicks of this button.