Tab Control

  • Thread starter Thread starter Jamea
  • Start date Start date
J

Jamea

A few questions

is there a way to get tabs on the bottom of a tab cotrol (or side?).
Is there a way to get the tab to automatically resize to the full
length of the tab control especailly on resizing

I looged at tabcotrolex but my comapny hs a policy of not use outside
dll from non commercial sources (DUMB)
 
You did look at the tabcontrol's properties right? It's usually
helpful to read the brief description of what the controls do.
is there a way to get tabs on the bottom of a tab cotrol (or side?).

Alignment property of the tabcontrol. (change to bottom, left, or
right)
Is there a way to get the tab to automatically resize to the full
length of the tab control especailly on resizing

SizeMode property of the tabcontrol (change to Fixed)
Then use a little math and set the ItemSize property to the
appropriate values.

Thanks,

Seth Rowe
 
A few questions

is there a way to get tabs on the bottom of a tab cotrol (or side?).

Set the Alignment property. You will however, run into problems with Visual
Styles which will require you to render the control yourself in order to
fix. If using one of the Button Appearances you will need to adjust the
DisplayRectangle in order to get the TabPages to fit properly.
Is there a way to get the tab to automatically resize to the full
length of the tab control especailly on resizing

The FillToRight property should do this, but it only seems to work if you
have more than one row of tabs.
You can set SizeMode to Fixed and then alter the ItemSize to set the desired
tab size.
I looged at tabcotrolex but my comapny hs a policy of not use outside
dll from non commercial sources (DUMB)

TabControlEx is just a System.Windows.Forms.TabControl behind the scenes and
so probably wouldn't help you out too much anyway. The FillToRight property
would behave in exactly the same way. Of course, you wouldn't have a problem
with VisualStyles or the DisplayRectangle, but to be quite honest, these are
not too difficult to fix in VS2005 with a little help from the new
VisualStyleRenderer class.
 
Back
Top