Code: Select all
LstU.ListItems(3).Selected = True 'Markiert Item 4
In MultiSelectMode 0 I get an error like this: Method 'Selected' for the Object 'IListBoxItem' failed (translated from german)
Btw: I tried the Unicode Listbox a lot and I played also with this:
Code: Select all
MsgBox LstU.SelectedItem.Index '3
MsgBox LstU.ListItems.Item(3).Index '3
MsgBox LstU.CaretItem.Index '3
MsgBox LstU.CaretItem.Selected 'wahr