Click here to Skip to main content
16,012,611 members
Please Sign up or sign in to vote.
1.23/5 (4 votes)
See more:
How can i align the tab in center position. I can only right and left but i want the tab should be in center.

Please check the screenshot below:

https://i.gyazo.com/165cbc1e53c88296d190e6f8b026f6ee.png[^]

Please also tell how can I colourise the selected tab..

Edit - I am using Windows Form but default tab control. There is no other code i have to make changes on tab to make it center. That image given above is the mockup of the design.

Regards,
Posted
Updated 1-Sep-15 19:59pm
v3
Comments
Sergey Alexandrovich Kryukov 1-Sep-15 15:24pm    
Why?
—SA
Member 11927641 1-Sep-15 15:26pm    
Why for what?
I want to be the tabs should be on center...
Sergey Alexandrovich Kryukov 1-Sep-15 15:26pm    
:-)
ZurdoDev 1-Sep-15 21:46pm    
Need a lot more info. Click improve question and show us the relevant code you have. Is this web? Windows forms? What is it? What control is it?
Member 11927641 2-Sep-15 1:59am    
Updated

1 solution

Here is a sample how do create your "own" TabControl :
Painting Your Own Tabs - Second Edition[^]
 
Share this answer
 
Comments
CHill60 2-Sep-15 9:28am    
The very same article I was going to recommend! +5
Ralf Meier 3-Sep-15 4:29am    
Thank you for your vote :)
Maciej Los 2-Sep-15 14:12pm    
5ed!
Ralf Meier 3-Sep-15 4:29am    
@Maciej: Thank you too for your vote :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900