Home All Groups Group Topic Archive Search About

Tab page text in bold

Author
27 Nov 2006 10:42 AM
Prashwee
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_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles TabControl1.SelectedIndexChanged

CType(sender, TabControl).SelectedTab.Font = New Font(Me.Font.Bold,
FontStyle.Bold)

CType(sender, TabControl).SelectedTab.Text = "test"

End Sub



/Thanks in Advance

Prash

Author
27 Nov 2006 1:42 PM
Michel van den Berg
You can't without drawing it yourself. Haven't tested it, but...
http://www.vbforums.com/showthread.php?t=355093

Prashwee schreef:

Show quoteHide quote
> 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_SelectedIndexChanged(ByVal sender As System.Object,
> ByVal e As System.EventArgs) Handles TabControl1.SelectedIndexChanged
>
> CType(sender, TabControl).SelectedTab.Font = New Font(Me.Font.Bold,
> FontStyle.Bold)
>
> CType(sender, TabControl).SelectedTab.Text = "test"
>
> End Sub
>
>
>
> /Thanks in Advance
>
> Prash