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

  • Thread starter Thread starter MumboJumbo
  • Start date Start date
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
 
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);
 
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
 
Back
Top