Library tutorials & articles
ListBox Control
By James Crowley, published on 14 Jul 2001
Properties and Events
The Listboxes main properties are explained below:
| Property | Changes... |
| Name | Control Reference |
| Text | Default Text displayed |
| List | Items on the dropdown list |
| Style | The listbox style (see above) |
| Sorted | whether the listbox is automatically sorted (read-only at runtime) |
| Multiselect | whether you can select more than one item at a time (must be set to False when Style = Checkbox) |
| Columns | the number of columns the items are displayed in when they do not fit in the screen |
The ListBox control has the following main events:
| Event | Occurs When... |
| Click() | The ListBox is clicked |
| DblClick() | The ListBox is double clicked |
| Change() | The selected item changes |
| GotFocus() | The ListBox is selected |
| ItemCheck() | When an item is checked or unchecked |
Related articles
Related discussion
-
Run-time error '91'
by converter2009 (1 replies)
-
VB6 Runtime error 381 subsript out of range Error
by Uncle (2 replies)
-
passing and reading parameters from using Shell
by jigartoliya (0 replies)
-
Convert C++ code to VB6
by mawcot (4 replies)
-
listbox scrollbar
by Dennijr (10 replies)
Related podcasts
-
Christian Beauclair
14 mai 2008 (�mission #0074) ::.Christian Beauclair: Stratégies de migration VB6 vers .NET Nous discutons avec Christian Beauclair des stratégies de migration VB6 vers .NET. Entre autres, nous discutons comment utiliser le "VB 6 Code Advisor" et le "Interop Forms Toolkit" pour ajouter la puiss...
Suppose I have numeric values in my listbox. How do I add them and display the result on a message box.
This thread is for discussions of ListBox Control.