When you set the Font property to TabPage, you set the default font for all the controls on this tab. However, you do not set it for the header.
When executing the following code:
tabControl.TabPages(index).Font = New Font(Me.Font, FontStyle.Bold)
Any controls on this page will now be in bold, which is not (I assume) what you want.
The header font (that is, the tab itself) is controlled by the TabControl Font property. If you want to change your code to:
tabControl.Font = New Font(Me.Font, FontStyle.Bold)
You will see it in action. However, it changes the font for all tabs displayed, and also not, I assume you want.
So, using the default WinForms tab control, you (I suppose) are limited by the technique in the link you specify. In addition, you can begin to review third-party controls, such as those discussed in these questions on StackOverflow .
John rudy
source share