Tab page text in bold

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Prashwee

    #1

    Tab page text in bold

    I have added a TabControl to my Application lately. I need to set the tab
    page text to bold when I change the index.
    I have done someting like this without any result.

    Can any one help me out
    Private Sub TabControl1_Sel ectedIndexChang ed(ByVal sender As System.Object,
    ByVal e As System.EventArg s) Handles TabControl1.Sel ectedIndexChang ed

    CType(sender, TabControl).Sel ectedTab.Font = New Font(Me.Font.Bo ld,
    FontStyle.Bold)

    CType(sender, TabControl).Sel ectedTab.Text = "test"

    End Sub



    /Thanks in Advance

    Prash


  • Michel van den Berg

    #2
    Re: Tab page text in bold

    You can't without drawing it yourself. Haven't tested it, but...
    http://www.vbforums.com/showthread.php?t=355093

    Prashwee schreef:
    I have added a TabControl to my Application lately. I need to set the tab
    page text to bold when I change the index.
    I have done someting like this without any result.
    >
    Can any one help me out
    Private Sub TabControl1_Sel ectedIndexChang ed(ByVal sender As System.Object,
    ByVal e As System.EventArg s) Handles TabControl1.Sel ectedIndexChang ed
    >
    CType(sender, TabControl).Sel ectedTab.Font = New Font(Me.Font.Bo ld,
    FontStyle.Bold)
    >
    CType(sender, TabControl).Sel ectedTab.Text = "test"
    >
    End Sub
    >
    >
    >
    /Thanks in Advance
    >
    Prash

    Comment

    Working...