closing a TabPage, how??

J

Jeff

..NET 2.0

I've created a form which contain a TabControl. During runtime TabPages will
be added in the TabControl.

I would like to have a feature like an "X" (like closing windows) in the tab
which when clicked closes that specific tabpage.

any suggestions on how to implement this are most welcome!

Jeff
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

You wil have to either implement it on your own or find a third party
control (take a look at the Infragistics package).

for implementing it take a look at some Owned draw controls examples there
are in the web. You will have to add a "close" button ni the tabpage and
handle the click of that control.
 

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