Unicode Controls & Classes for VB6 - Version 4

ctlUniDriveBoxXP Control

An Unicode DriveBox control made using our ctlUniComboImageXP control.
Check common properties here

Enums
Name Description
Events
Name Description
KeyDown
KeyPress
KeyUp
Change
DblClick
MouseDown
MouseMove
MouseUp
MouseWheel Raised when the mouse wheel scrolls
Resize
BeforeDropDown Raised before dropping down the list
AfterDropDown Raised before closing the drop down list
ItemSelecting Raised when selecting an item in the drop down list
Properties
Name Type Description
AllowImages (Boolean) Gets or sets the ability to use images with drive items
BackColor (OLE_COLOR) Gets or sets the Background color of the control
BackColorOut (OLE_COLOR) Gets or sets the Color of the area out of the border (when using Rounded Borders in a non WindowLess control)
Leave -1& for automatic management
BorderColor (OLE_COLOR) Gets or sets the Border color
ButtonBackColor (OLE_COLOR) Gets or sets the button background color
ButtonForeColor (OLE_COLOR) Gets or sets the button foreground color
ButtonStyle (eCtlButtonStyle) Gets or sets the style of the combobox
Drive (String) Gets or sets the current drive
DropDownWidth (Long) Gets or sets the width of the drop down list
Enabled (Boolean) Enables or disables the control
Font (Font) Gets or sets the font used for text in the control, check the [ApplyFontChanges] for details
ForeColor (OLE_COLOR) Gets or sets the text color
HScroll (Boolean) Gets or sets the ability to use a horizontal scrollbar on the popup list
List (String) Gets the item at a certain index
ListCount (Long) Returns the number of items in the list
ListIndex (Long) Gets or sets the current element
MouseIcon (Picture) Gets or sets the MouseIcon for the control
MousePointer (VBRUN.MousePointerConstants) Gets or sets the MousePointer for the control
RoundedBorders (Boolean) Gets or sets Rounded borders
RoundSelector (Boolean) Gets or sets the ability to use rounded borders for the list item selector
SelBackColor (OLE_COLOR) Gets or sets the background color of the list item selector
SelectorStyle (eCtlButtonStyle) Gets or sets the style of the list selector
SelForeColor (OLE_COLOR) Gets or sets the foreground color of the list item selector
Tip (String) Gets or sets the Unicode Tooltip for the control
UseRoundRegions (Boolean) Gets or sets the ability to use Round Regions for round borders instead of using the [BackColorOut] property;
Methods
Name Type Description
ApplyFontChanges When setting a new font on the control you need to call this function in order to refresh the interface
DropDown Opens or Closes the dropdown list
ForceLostFocus Forces the control to lose the keyboard focus
hWnd (Long) Retuns the handle associated with the control
IsDroppedDown (Boolean) Returns True if the combo list is dropped down
Refresh Refreshes the drives list
Remarks