| Visual Basic 6.0 | Visual Basic .NET Equivalent |
| Appearance | No equivalent. For more information, see Appearance and BorderStyle Property Changes in Visual Basic .NET. |
- BackColor
|
- BackColor
- For a list of constants, see Color Changes in Visual Basic .NET.
|
| CausesValidation | CausesValidation |
| Columns | MultiColumn and ColumnWidth
Note The Columns property took an integer specifying the number of columns. The MultiColumn property takes a Boolean value, and the ColumnWidth property takes an integer specifying the width in pixels. If the width of the ListBox control is changed at run time, you may also need to set the ColumnWidth property for each column.
|
| Container | Parent |
| DataChanged | No equivalent. For more information, see Data Changes in Visual Basic .NET. |
| DataField | No equivalent. For more information, see Data Changes in Visual Basic .NET. |
| DataFormat | No equivalent. For more information, see Data Changes in Visual Basic .NET. |
| DataMember | No equivalent. For more information, see Data Changes in Visual Basic .NET. |
| DataSource | No equivalent. For more information, see Data Changes in Visual Basic .NET. |
| DragIcon | No equivalent. For more information, see Drag and Drop Changes in Visual Basic .NET. |
| DragMode | No equivalent. For more information, see Drag and Drop Changes in Visual Basic .NET. |
| Enabled | Enabled |
| Font | Font
|
| FontBold | Font
|
| FontItalic | Font
|
| FontName | Font
|
| FontSize | Font
|
| FontStrikethru | Font
|
| FontUnderline | Font
|
- ForeColor
|
- ForeColor
- For a list of constants, see Color Changes in Visual Basic .NET.
|
| Height | Height, Size
|
| HelpContextID | No equivalent. For more information, see Help Support Changes in Visual Basic .NET. |
| HWnd | Handle |
| Index | No equivalent. For more information, see Control Array Changes in Visual Basic .NET. |
| IntegralHeight | IntegralHeight |
| ItemData | No equivalent. For more information, see ItemData property cannot be upgraded. |
| Left | Left
|
| List | Items |
| ListCount | Items.Count |
| ListIndex | SelectedIndex |
| MouseIcon | No equivalent. For more information, see Cannot set a custom MousePointer. |
| MousePointer | Cursor
For a list of constants, see MousePointer Changes in Visual Basic .NET.
|
- MultiSelect
- 0 – None
1 – Simple
2 – Extended
|
- SelectionMode
- SelectionMode.One
SelectionMode.MultiSimple
SelectionMode.MultiExtended
|
| Name | Name |
| NewIndex | No equivalent. For more information, see NewIndex property cannot be upgraded. |
| OLEDragMode | No equivalent. For more information, see Drag and Drop Changes in Visual Basic .NET. |
| OLEDropMode | No equivalent. For more information, see Drag and Drop Changes in Visual Basic .NET. |
| Parent | FindForm method |
- RightToLeft
- True
False
|
- RightToLeft
- RightToLeft.Yes
RightToLeft.No
|
| SelCount | SelectedItems.Count |
| Selected | GetSelected, SetSelected (ListBox control)
GetItemChecked, SetItemChecked (CheckedListBox control)
|
| Sorted | Sorted |
- Style
- 0 - Standard
1 - Checkbox
| No equivalent property. 0 – Standard maps to the ListBox control, 1 – Checkbox maps to the CheckedListBox control. |
| TabIndex | TabIndex |
| TabStop | TabStop |
| Tag | Tag |
| Text | Text |
| ToolTipText | ToolTip component
For more information, see ToolTip Changes in Visual Basic .NET.
|
| Top | Top
|
| TopIndex | TopIndex |
| Visible | Visible |
| WhatsThisHelpID | No equivalent. For more information, see Help Support Changes in Visual Basic .NET. |
| Width | Width, Size
|