ListBoxObject.Itemdata (RowIndex)

Use the additem method put a few items into a listbox. Press CTRL+BREAK and use the immediate window to find your answers.

?List1.List(1)
?List1.ItemData(1)
List1.Selected(1) = True
?List1.ListIndex

Now, you will notice that list and itemdata return different string because one is zero based and the other is one based.


Good Luck

Hi friend i still don't get what you mean about Itemdata and Method SendKeys could you please give me some things?

And what does sendkeys have to do with explanations of a listbox's properties/methods/events?

Add list box to form, make sure it is selected, press F1, and read all about it.


Good Luck

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.