TabPage / TabControl (can't close tabs)

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
 
A

Alien

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.
 
B

Benne

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top