TabPage / TabControl (can't close tabs)

  • Thread starter Thread starter Benne
  • Start date Start date
B

Benne

Hi,

Does anybody know if it's possible to have the small "x" on the tabpages in
a tabcontrol ? I need a nice way to close them, without a big, ugly buttom
on the tabpage itself. It would be cool if the "x" was on the tab "header"
(the one you click on when you want to switch to a tab).

Thanks,

Bene
 
maybe i'm oversimplifying it, but it seems like it wouldn't be too hard to
override the OnPaint method, paint an X, and then detect mouseclicks on that
X and close the tab when it's clicked.
 
hi michael,

thanks alot. i haven't seen that one before. but the X is not on the header,
but at the right side next to them. it's good, but it would be awesome if
the X was on each header itself.

but thanks alot !

:-) Benne
 
Back
Top