Tab page text in bold

P

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top