473,403 Members | 2,284 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,403 software developers and data experts.

TabPage / TabControl (can't close tabs)

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 if the "x" was on the tab "header"
(the one you click on when you want to switch to a tab).

Thanks,

Bene
Nov 15 '05 #1
3 10444
see the TabControl at
http://www.dotnetmagic.com/

They have Visual Studio type Tab Controls (where the X is in the top
right corner of the row with all tab "headers").
"Benne" <be***@spam4you.net> wrote in message
news:3f**********************@news.dk.uu.net...
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 if the "x" was on the tab "header" (the one you click on when you want to switch to a tab).

Nov 15 '05 #2
maybe i'm oversimplifying it, but it seems like it wouldn't be too hard to
override the OnPaint method, paint an X, and then detect mouseclicks on that
X and close the tab when it's clicked.

"Benne" <be***@spam4you.net> wrote in message
news:3f**********************@news.dk.uu.net...
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 if the "x" was on the tab "header"
(the one you click on when you want to switch to a tab).

Thanks,

Bene

Nov 15 '05 #3
hi michael,

thanks alot. i haven't seen that one before. but the X is not on the header,
but at the right side next to them. it's good, but it would be awesome if
the X was on each header itself.

but thanks alot !

:-) Benne

"Michael Mayer" <mrmayer at charter dot net> wrote in message
news:vi************@corp.supernews.com...
see the TabControl at
http://www.dotnetmagic.com/

They have Visual Studio type Tab Controls (where the X is in the top
right corner of the row with all tab "headers").
"Benne" <be***@spam4you.net> wrote in message
news:3f**********************@news.dk.uu.net...
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 if the "x" was on the tab

"header"
(the one you click on when you want to switch to a tab).


Nov 15 '05 #4

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

Similar topics

4
by: TMB333 | last post by:
I've researched as much as I can on the issue, but I've not found any clearly defined statement that acknowledges that the Hide method for a TabPage object just doesn't do what it's supposed to do....
1
by: Dmitry Karneyev | last post by:
Hi! I've made a form with combobox and a tabcontrol. Each time the value of combobox changes I need to show only one tabpage from tabcontrol. It works, but the tabcontrol bookmark of selected...
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...
4
by: Supra | last post by:
I have a tab control in a which a few of the tabs include an AxWebBrowser browser control. Let say i have currently tabpage2 and i typed url in combobox when i pressed enter it doesn't display...
2
by: GatorBait | last post by:
Hi everyone, I have a tabcontrol on a form that contains 4 tabs. I want to make each tab a seperate form because there is a great deal of code behind each page, and organizationally it was...
6
by: ray well | last post by:
i want a user to be able to change tab pages thru the keyboard, i tried entering the TabPage.text as '&1 Names', "&2 Addresses', etc., so that the user can change pages by type ALT 1, ALT 2, on the...
2
by: Jeff | last post by:
..NET 2.0 How do I in the DrawItem event of a TabControl measure how wide the area displaying TabPage.Text need to be?? For example I've got a tabpage with the text property set to "hello...
0
by: Jeff | last post by:
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...
2
nev
by: nev | last post by:
i have a tabcontrol with 2 tabs. in my datasources pane i have a table with 4 columns -- col1, col2, col3 & col4. now i drag n drop col1 in tab1 & col2 in tab2 as bound textboxes. i place col3 &...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.