Skip to content

ListBox Control Members

See Also

ListBox Overview

See Also | | Suite Pro Controls ActiveX Control v24.0 | | | | | | | | |---|---|---|---|---|---|---|---|---|

ListBox Control Members

Public Methods

Method Description
Public MethodAboutBox Displays a dialog box that specifies the current version of the control.
Public MethodAddItem Adds an item to the list box control.
Public MethodClear Clears the contents of the list box.
Public MethodFindItem Finds the first item in the list box that starts with the specified string.
Public MethodHitTest The HitTest method returns -1 if the tested point is within the list box but not on an item in the list box. If the tested point is on an item in the list box, HitTest returns the index of the list box item.
Public MethodOLEDrag Causes a component to initiate an OLE drag/drop operation.
Public MethodRemoveItem Removes an item from the list box.

Public Properties

Property Description
Public PropertyAppearance Gets or sets the paint style of the control.
Public PropertyBackColor Gets or sets the background color of the control.
Public PropertyChecked Collection that specifies whether an item with a check box has been checked.
Public PropertyColumnWidth Gets or sets the width of columns in a multicolumn ListBox.
Public PropertyControlToolTip Gets or sets the tool tip that is displayed when the mouse cursor is positioned over this item.
Public PropertyDrawFocusRect Gets or sets whether a focus rectangle is drawn around the items in the list box.
Public PropertyEnabled Gets or sets whether this control is enabled.
Public PropertyEnableMarkup Allows the use of a XAML snippet to be used for the control.
Public PropertyFlatStyle Gets or sets the "flat" appearance of the control.
Public PropertyFont Gets or sets the font that will be used to display the text for the control.
Public PropertyForeColor Gets or sets the foreground color used to display text in the control.
Public PropertyhWnd Gets the window handle that the control is bound to.
Public PropertyItemData Returns or sets a specific number for each item in the list box control.
Public PropertyList Returns or sets the items contained in a list box's list portion. The list is a string array in which each element is a list item.
Public PropertyListCount Returns the number of items in the list portion of the list box.
Public PropertyListIndex Returns or sets the index of the currently selected item in the list box.
Public PropertyMarkupContext Connects events in XML Markup with actual methods, functions, and events in your code.
Public PropertyMarkupList Returns or sets the items contained in a list box's list portion stored as markup.
Public PropertyMultiSelect Gets or sets the method in which items are selected in the list box.
Public PropertyNewIndex Returns the index of the item most recently added to a list box.
Public PropertyOLEDragMode Returns or sets whether the component or the programmer handles an OLE drag/drop operation.
Public PropertyOLEDropMode Returns or sets how a target component handles drop operations.
Public PropertyReCreateReparented Gets or sets a value indicating whether the control elements are aligned to support locales using right-to-left fonts.
Public PropertyRightToLeft Gets or sets a value indicating whether the control elements are aligned to support locales using right-to-left fonts.
Public PropertySelCount Returns the number of selected items in the list box control.
Public PropertySelected Gets a collection containing the currently selected items in the list box control.
Public PropertySelectionBackColor Gets or sets the background color used for currently selected items.
Public PropertySelectionForeColor Gets or sets the foreground color used for currently selected items.
Public PropertyShowBorder Specifies whether to display a border around the edge of the control.
Public PropertySorted Gets or sets a value indicating whether the items in the list box are sorted.
Public PropertyStyle Specifies whether this is a CheckListBox or a Standard ListBox.
Public PropertyText Gets or sets the text associated with this control.
Public PropertyToolTipContext Represents the tool tip window that is used to display tool tips.
Public PropertyTopIndex Returns or sets a value that specifies which item in the list box is displayed in the topmost position.
Public PropertyUseVisualStyle Determines if the control is drawn using visual styles/SkinFramework, if supported.

Events

Event Description
Public EventClick Occurs when the user presses and then releases a mouse button over the list box. It can also occur when the value of the list box is changed.
Public EventDblClick Occurs when the user presses and releases a mouse button and then presses and releases it again over the list box.
Public EventItemCheck Occurs when an item's check box is checked or unchecked.
Public EventKeyDown Occurs when the user presses a key while a control has the focus. (To determine ANSI characters, use the KeyPress event.)
Public EventKeyPress Occurs when the user presses and releases an ANSI key.
Public EventKeyUp Occurs when the user releases a key while a control has the focus. (To determine ANSI characters, use the KeyPress event.)
Public EventMouseDown Occurs when the user presses a mouse button.
Public EventMouseMove Occurs when the user moves the mouse.
Public EventMouseUp Occurs when the user releases a mouse button.
Public EventOLECompleteDrag Occurs when a source component is dropped onto a target component, informing the source component that a drag action was either performed or canceled.
Public EventOLEDragDrop Occurs when a source component is dropped onto a target component when the source component determines that a drop can occur.
Public EventOLEDragOver Occurs when one component is dragged over another.
Public EventOLEGiveFeedback Occurs after every OLEDragOver event. OLEGiveFeedback allows the source control to provide visual feedback to the user.
Public EventOLESetData Occurs on a source component when a target component performs the GetData method on the source’s DataObject object, but before the data for the specified format has been loaded.
Public EventOLEStartDrag Occurs when a component's OLEDrag method is performed, or when a component initiates an OLE drag/drop operation when the OLEDragMode property is set to Automatic.
Public EventReCreated

See Also

ListBox Overview


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.