Customize Tabcontrol C#

Asked

Viewed 818 times

1

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

I tried using the Tabcontrol component of Windows Forms and I could not, I tried how to take this white border, change the color of the tab where is written tabPage1 and I was unsuccessful.

How can I do that?

TabControl

  • You need to focus on what you want and ask a specific question. Playing the generic problem here will only make you have generic answers (which is not our intention here).

1 answer

2


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

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

  • Good morning Renan, by chance you know of some course, topic, or something like that I can learn a little more about WPF, because I tried to stir and I found it very complicated, because it has to be fiddling with tags, Thanks for now.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.