Noob Tab Colour question

Hi everyone,

Thanks to everyone that answered my last question, and its time for my noob question MK2.

Firstly I would like to change the colour of the actual tab's not the main workspace area of the tabs but the actual tab buttons or the "real tabs" if you will, where the text of a tab is displayed. im using an image library to display some icons in there and that really makes a difference, but id like to get away from the boring old standard grey.

Is there a way to do this

Thanks again.



Answer this question

Noob Tab Colour question

  • k3bdf

    Private Sub TabPage1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabPage1.Click
    Me.TabPage1.Controls(index).ForeColor = Color.Blue
    End Sub

    When i put that code in its has an error

    ERROR:Error 1 Name 'index' is not declared. C:\Documents and Settings\Connor\Desktop\heree\WindowsApplication1\WindowsApplication1\Form1.vb 56 30 Code 9 .DAT Creator


    How do I declare index


  • Jeff Bramwell

    Try this


  • OwaisM

    that changes the font colour on the tab page itself, not the actual colour of the tab at the top, i tried all those properties that ere there but no luck

    thansk for your suggestion though!


  • LibertySt

    I am unsure, just checked the properties so here goes and hope it helps....

     



    Me.theTabControl.Controls(index).ForeColor= Color.yourColor

     

     

    Also check this:

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformstabcontrolclassdrawitemtopic.asp



  • Noob Tab Colour question