Why is this line generating a type mismatch error? The name assigned to my listbox is “lbListing”
lbListing.RowSelectionType = Listbox.RowSelectionTypes.Multiple
Why is this line generating a type mismatch error? The name assigned to my listbox is “lbListing”
lbListing.RowSelectionType = Listbox.RowSelectionTypes.Multiple
Hi John,
Try using DesktopListbox instead of Listbox:
lbListing.RowSelectionType = DesktopListbox.RowSelectionTypes.Multiple
Usually the error message gives you more information, like:
Type mismatch error. Expected enum DesktopListBox.RowSelectionTypes, but got enum Listbox.RowSelectionTypes
is that what you see?
Dang that API2 cornfusion!