Closing a TabPage, another approach, possible?

J

Jeff

Hey

..NET 2.0

I have a form containing a TabControl. During runtime TabPages get added to
this TabControl.

I want a way to close the TabPages. As it is now, I have to restart the
application for to remove the TabPages. This is not an ideal situation.

If I fill the TabControl with more TabPages then it have space to show tabs
for then left & right arrows are added to the top of the TabControl. These
arrows can be used for navigating the TabPages. I've seen some other
applications have the same functionality but in addition they have an X.
when clicking on this X then the selected tabpage closes....

Is this possible using .NET 2.0, how can this be done? is there a setting
for this on the TabControl?

Best regards!

Jeff
 
C

Chris Shepherd

Jeff said:
If I fill the TabControl with more TabPages then it have space to show tabs
for then left & right arrows are added to the top of the TabControl. These
arrows can be used for navigating the TabPages. I've seen some other
applications have the same functionality but in addition they have an X.
when clicking on this X then the selected tabpage closes....

Is this possible using .NET 2.0, how can this be done? is there a setting
for this on the TabControl?

The way I've seen it done was to extend TabControl in order to make your
own tab.

Chris.
 

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