If you've inherited from TabControl, then the length of the tab
automatically sizes depending upon the length of the associated Tabpages
Text property. So the answer would be to set the tabpages text property to
the desired string. I am not aware of a way to set the size of individual
tab items.
You can however, set the size of all tabitems by setting the Tabcontrols
SizeMode property to Fixed and then setting the TabControls ItemSize
property.
--
Mick Doherty
http://dotnetrix.co.uk
"Andre Nogueira" <an**@netcabo.pt.NOSPAM> wrote in message
news:ub**************@TK2MSFTNGP12.phx.gbl...
hi there.
I am creating a tabcontrol where the drawing of the tabs is controlled by
me.
However, i cannot find a way to change the lenght of the tab.
For instance, "String" needs a smaller tab than a tab which text is "this
is a tab with a really really long text".
How can this be done, the changing of the width of the tab?
Thanks!
André Nogueira
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07/06/2004