Click here to Skip to main content
15,920,603 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have a tabcontrol on a form with code to dynamically add tabs at runtime.

The sizemode on the control is set to normal, but when I try to add a tab with a long name, it splits it over 2 lines and looks ugly.

Is there any way to set the width of a tab (not the tabpage)?
Posted

1 solution

I think you need to set SizeMode to Fixed and ItemSize to the size you want. But that's going to affect ALL tabs, not just one of them...
 
Share this answer
 

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