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
Defines the width of the drop down portion.
Get
VB.NET | W = object.Width As Single |
VB | W = object.Width As Single |
C#.NET | float W = object.Width; |
VC++ | float W = object->Width; float W = object->GetWidth(); |
C | HRESULT object->get_Width(float* W); |
Put
VB.NET | object.Width = W As Single |
VB | object.Width = W As Single |
C#.NET | float object.Width = W; |
VC++ | float object->Width = W; void object->PutWidth(float W); |
C | HRESULT object->put_Width(float W); |
object
W
Defines the width of the drop down portion. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used. If 0 is used, the drop down portion has the same width as the combo box client area.
The Width property defines the width of the drop down portion.
The Width and DropDown.WidthPix properties are synonyms, but may use different coordinate systems.
The width defined using Width property is considered a maximum value. The width of the drop down portion may be adjusted (made smaller) so the drop down portion doesn't extend beyond the edge of the screen.
The actual width of the drop down portion can be found using the DropDown.GetPosition method.
The DropDown.WidthPercent property can also be used to define the width. If the DropDown.Width property is set, the DropDown.WidthPercent property is set to 0.
The Width property must be set before the drop down portion becomes visible.
This property cannot be used with a simple combo box.
See Also SftBoxDropDown Object | Object Hierarchy