Hi, Does anyone here now how to get the value of the second from last item in a listbox?
Thanks in advance,
John
Printable View
Hi, Does anyone here now how to get the value of the second from last item in a listbox?
Thanks in advance,
John
Dim text as string
text = listbox1.item(listbox1.items.count-2).text
msgbox(text)
No sure if this is completely right but it should be close
(Dont have VS.Net on this computer)
nope it doesn work :(
text = listbox1.item(listbox1.items.count-2)
Try this:
Dim text as string
Dim i as integer=listbox1.items.count-2
text = listbox1.item(i)
msgbox(text)
I was thinking Listview not Listbox
Damn you be me to it!:)