TabControl how do get close tab [x] on tabcontrol ?

M

MumboJumbo

TabControl how do get close tab [x] on tabcontrol ?

I have an app that can dynamically open tabs containing pictures ... now
i need a way to close the ones i want to close ?

Is there a way to do this easily?

Thanks,
Jim
 
S

Sean Hederman

MumboJumbo said:
TabControl how do get close tab [x] on tabcontrol ?

I have an app that can dynamically open tabs containing pictures ... now i
need a way to close the ones i want to close ?

Create a button which is above the tab control in the Z-Order and in the
position you want. In that button use the following code:
myTab.TabPages.Remove(myTab.SelectedTab);
 
M

MumboJumbo

Thank you ...

Short answer seems to be:

there is no [<][>][X] buttons built into the tab controller unless you
add buttons above (which looks ugly) or make your widget ...

Thanks for the help,
Jim
 

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

Similar Threads


Top