Customize TabControl C # [closed]

1

I need to customize a TabControl, like, change the colors of the tabs when selected, leave the TabControl without a border (flat type), etc.

I tried using the TabControl component of Windows Forms and I could not, I tried to remove this white border, change the color of the tab where tabPage1 is written and I did not succeed.

How can I do this?

    
asked by anonymous 02.06.2017 / 01:20

1 answer

2

The buttons can be made flat ( "flat" ) through the Appearance property of TabControl . The property is an enumeration and one of the values does what you want.

Other changes are not available for the TabPanel class. Unfortunately you would have to create a new control class for this, and the complexity would be too high to have a simple answer. The alternative is to do with WPF rather than Windows Forms - you'll have to write a lot more code, but you'll have more control over appearance.

    
02.06.2017 / 15:30