Hi, How to count the number of records found in listbox ah?
Thanks everyone..
Printable View
Hi, How to count the number of records found in listbox ah?
Thanks everyone..
Dig around and check out the properties of the listbox via the intellisense and you'll see that the Items property (collection) has a 'Count' property.
Msgbox(ListBox1.Items.Count)
Thanks, i done it
Is the listbox different to VB's listbox then? Or does .Net just open up more methods etc?
Woka
The .NET listbox is a adds a bunch of methods/properties and also the Items collection can store any kind of object, not just strings so the whole ItemData kludge is no longer needed.