SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Returns the natural height or width of the control.
Get | |||
VB | Size = object.NaturalSize As Single |
object
Size
Returns the natural (or optimal) height or width for the current tab control. The units used depend on the current coordinate system used (usually TWIPS).
The NaturalSize property returns the natural height or width of the control.
The NaturalSize and NaturalSizePix properties are synonyms, but use different coordinate systems.
The NaturalSize property can only be used when a client area has not been defined (see ClientArea).
Horizontal tab controls without client area have an optimal height which allows all tabs to be displayed without being truncated and without extra height added to the tabs to fill the available dimensions of the tab control.
Vertical tab controls without client area have an optimal width which allows all tabs to be displayed without being truncated and without extra width added to the tabs to fill the available dimensions of the tab control.
The MakeNaturalSize method can be used to resize a tab control to its best width or height.
The Tabs.ForcedSize property can override the height/width of tab rows, affecting the tab control size.
See Also SftTabs Object | Object Hierarchy