I've got an application that has a TabControl with some tab pages on it. I'd like the users to be able to close a tab if they dont want it any more. The tab control will add the left and right arrows if there are more tab pages than can fit on the tab control, so that you can move down the list of tabs. However, I can not find an intuitive way to allow the user to close the selected tab during runtime. What would be ideal is if there was a way to put a button in the TabControl header, like the left and right arrows, that could close the selected tab. Only thing is that the TabControl won't allow you to place a button in the header. Does anyone have any ideas of how to do this

TabControl leaves me wanting more
Code Dragon
Robert E Wilson
vbnetway
Sarang Baheti
Hi,
I don't know if it cana help you but...
for other reason I'm using the dockPanel control (look on SourceForge) and instead of a document I have created a form with standard control.
For every tab i create a new instance of this form with correct data.
The visual effect is similar to tabcontrol but better on refresh.
I hope this help you.
corrado
Ovais Mehboob
Hi,
This is a limitation of the underlying native Tab Control.
Another work around is to have a button on your Form. When the user clicks the button, you can then remove the tab page from the tab control. Not as pretty as what Ben suggests, but easier to implement.