Change backcolor, forecolor and font on Tabs of a TabPage control?

timcurtin

Member
Joined
Dec 13, 2013
Messages
16
Programming Experience
5-10
Hello All,

I have a Form (MissionFrm) which contains a TabControl with a collection of 10 TabPages. I have labeled the Text of each TabPage accordingly such as "Mission Info" for TabPage0 for example. When I use the I am trying to change the BackColor, ForeColor and Font of each of the 10 Tabs at the top but have had no success no matter what I am doing

I am right now using a For...Next loop to iterate through all the controls but for some reason, the TabPages and other child controls do what I want but the Tab's themselves do not change. I can however make the Font change universally, but the backcolor and forecolor properties are ot changing on the Tabs. Any ideas???

Thanks...
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,335
Location
Sydney, Australia
Programming Experience
10+
The tabs are part of the TabControl, not the TabPages. It's actually not that easy to change the appearance of those tabs because there's no simple managed interface. All the information you need can be found here:

Mick Doherty's TabControl Tips.
 
Top Bottom