473,322 Members | 1,690 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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

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
Nov 17 '05 #1
3 18929
Have you tried calling the dispose method of the tab?

Carlos

"MumboJumbo" wrote:
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

Nov 17 '05 #2
"MumboJumbo" <ju**@junk.be> wrote in message
news:Fi*******************@news20.bellglobal.com.. .
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);
Is there a way to do this easily?

Thanks,
Jim

Nov 17 '05 #3
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

MumboJumbo wrote:
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

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Benne | last post by:
Hi, Does anybody know if it's possible to have the small "x" on the tabpages in a tabcontrol ? I need a nice way to close them, without a big, ugly buttom on the tabpage itself. It would be cool...
5
by: Tamir Khason | last post by:
How be able to manage more deeply UI of TabControl and TabPage For example - I want to manage border color, change color of TabPage reef, eliminate spaces from both sides of the reef, so I bould...
1
by: RA | last post by:
Hi 1) I want to create a TabPage class in design mode - how do I do it? What type of project should I use? Is it going to be a custom control? 2) I have a TabControl that I would like to add to...
3
by: Henry Wu | last post by:
Hi, NumericUpDown control has a InterceptArrowKeys property, is there such a thing for a TabControl? I want to prevent the TabPages from switching to one another when the Left & Right arrow keys...
0
by: Gianluca | last post by:
Hi All, i'm experencing a frustrating and strange behaviaour : I created a Windows project in VB.NET 2003 with a form and then I added a TabControl on the form, and added 5 TabPages on...
9
by: Michael Turner | last post by:
Hi Guys Having problem with the tab control, I need to set the background color to something different than the standard, I have found code on the web and now can redraw the tabpage buttons so...
1
by: theintrepidfox | last post by:
Dear Group I wonder if you can help me with the following. I have a form(Form2) that contains a tabcontrol. If I click 'Tab2' Form3 should be displayed and 'Form2' closed. The instruction to...
2
by: shahoo | last post by:
I am new to C# and I have a problem with the TabControl. I want to add a context menu to the tab with one menuItem to enable the user to close the tabbs. But when I Right-click the tabs, the...
3
by: tezu | last post by:
hi , Im new to c# , currently i'm developing an UI . i have used windows form in this , i have created my own maximise , minimise and close buttons for the form . the form also contains a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.