Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Selected tab in a Tab Page set?

Posted on 2006-06-11
4
Medium Priority
?
301 Views
Last Modified: 2012-06-22
This question is worth 250 points and they will be awarded to the provider of an answer that will help me solve my problem with Tabs.

Hi, I have a Tab Page set with several tabs. When the User clicks on any tab, obviously he/she will see the selected page corresponding to that tab.  However,  I would like to make the actual tab itself stand out more visibly.  In other words, I'd like to either change the color of the tab itself, or even part of it, like Windows XP does with the little orange bar above the text. Or maybe bold the text inside the tab, or change the text’s color, but nothing I do seems to work.  Does anyone know how to make a selected tab stand out more visibly than the others that are not selected?  Any visible change from the other tabs would work, but I wouldn’t want to have to create a custom tab object, as I don’t know exactly how to do that, or if it can even be done.  Currently, I have a label over each tab with the same text in bold font. When the tab is selected, the label becomes visible. When the tab is not selected, the label becomes disabled. I'd like a better way, as this is too combersome when you have many tabs.

Thanks for your help...!

 
0
Comment
Question by:Mr_Fulano
4 Comments
 
LVL 9

Expert Comment

by:jrscherer
ID: 16883384
What Visual Studio do you use?
0
 
LVL 19

Accepted Solution

by:
arif_eqbal earned 1000 total points
ID: 16883501
There are a few things you can do to specify which Tab is currently selected
For the Page you can have a different BackColor or Background image for each Tab Page
For the Tab Text you can Add an Image(icon) alongside the Text and you can have the Image change based on the selection.

For eg add an Image List to the form and have 2 images in it Say a RedColored Check Mark and a Greyed Check Mark
Red indicating current selected tab and Greyed indicating Unselected

Now in the Tabcontrol's ImageList property select the ImageList
Now code this in the TabControl1_SelectedIndexChanged Event

For Each TB As TabPage in TabControl1.TabPages
    TB.ImageIndex = 1 'Greyed
Next
TabControl1.SelectedTab.ImageIndex = 0 'Red

However I have assumed you are working on VS 2003
2005 might have something similar or hopefully better
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 16884043
0
 

Author Comment

by:Mr_Fulano
ID: 16890382
Sorry for omitting the verson. I am using VS 2003. Some of the suggestions offered thus far are good. Hopefully they're might be more. If so, I will increase the points and split them.  Thanks again. . .
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question