ListBox
Upgrades to (1) System.Windows.Forms.ListBox, or (2) System.Windows.Forms.CheckedListBox if Style =1.
Visual Basic 6 | Type | Visual Basic .NET |
AddItem | Method | Items.Add Items.Insert (if Index parameter exists) |
Appearance | Property | Used to determine BorderStyle |
BackColor | Property | BackColor |
CausesValidation | Property | CausesValidation |
Clear | Method | Items.Clear |
Click | Event | SelectedIndexChanged |
Columns | Property | Used to determine MultiColumn, ColumnWidth properties |
Container | Property | Parent |
DataChanged | Property | No mapping |
DataField | Property | For ADO, used in VB6_AddADODatabinding method |
DataFormat | Property | No mapping |
DataMember | Property | For ADO, used in VB6_AddADODatabinding method |
DataSource | Property | For ADO, used in VB6_AddADODatabinding method |
DblClick | Event | DoubleClick |
Drag | Method | No mapping |
DragDrop | Event | No mapping |
DragIcon | Property | No mapping |
DragMode | Property | No mapping |
DragOver | Event | No mapping |
Enabled | Property | Enabled |
Font | Property | Font |
FontBold | Property | Font.Bold, VB6.FontChangeBold |
FontItalic | Property | Font.Italic, VB6.FontChangeItalic |
FontName | Property | Font.Name, VB6.FontChangeName |
FontSize | Property | Font.SizeInPoints, VB6.FontChangeSize |
FontStrikethru | Property | Font.StrikeOut, VB6.FontChangeStrikeOut |
FontUnderline | Property | Font.Underline, VB6.FontChangeUnderline |
ForeColor | Property | ForeColor |
GotFocus | Event | Enter |
Height | Property | Height |
HelpContextID | Property | No mapping |
hWnd | Property | Handle |
IMEMode | Property | ImeMode |
Index | Property | Index property of ControlArray object |
IntegralHeight | Property | IntegralHeight |
ItemCheck | Event | (2) ItemCheck |
ItemData | Property | VB6.GetItemData, VB6.SetItemData methods |
KeyDown | Event | KeyDown |
KeyPress | Event | KeyPress |
KeyUp | Event | KeyUp |
Left | Property | Left |
List | Property | VB6.GetItemString, VB6.SetItemString methods |
ListCount | Property | Items.Count |
ListIndex | Property | SelectedIndex |
LostFocus | Event | Leave |
MouseDown | Event | MouseDown |
MouseIcon | Property | No mapping |
MouseMove | Event | MouseMove |
MousePointer | Property | Cursor |
MouseUp | Event | MouseUp |
Move | Method | SetBounds |
MultiSelect | Property | SelectionMode |
Name | Property | Name |
NewIndex | Property | Return result of Items.Add (if preceding line is Items.Add) |
OLECompleteDrag | Event | No mapping |
OLEDrag | Method | No mapping |
OLEDragDrop | Event | No mapping |
OLEDragMode | Property | No mapping |
OLEDragOver | Event | No mapping |
OLEDropMode | Property | No mapping |
OLEGiveFeedback | Event | No mapping |
OLESetData | Event | No mapping |
OLEStartDrag | Event | No mapping |
Parent | Property | FindForm |
Refresh | Method | Refresh |
RemoveItem | Method | Items.RemoveAt |
RightToLeft | Property | RightToLeft |
Scroll | Event | No mapping |
SelCount | Property | (1) SelectedItems.Count (2) CheckedIndices.Count |
Selected | Property | (1) GetSelected, SetSelected (2) GetItemChecked, SetItemChecked |
SetFocus | Method | Focus |
ShowWhatsThis | Method | No mapping |
Sorted | Property | Sorted |
Style | Property | Used to determine control type to upgrade to |
TabIndex | Property | TabIndex |
TabStop | Property | TabStop |
Tag | Property | Tag |
Text | Property | Text |
ToolTipText | Property | SetToolTip method on ToolTip component |
Top | Property | Top |
TopIndex | Property | TopIndex |
Validate | Event | Validating |
Visible | Property | Visible |
WhatsThisHelpID | Property | No mapping |
Width | Property | Width |
ZOrder | Method | VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1 |