vb.net - Removing the last item in a listbox? vb 2008 -


i have simple question. have listbox called listbox1. want add button removes last item on bottom whatever maybe, when button clicked.

but don't know how finish it. simple listbox1.removeitem(some number?)

what add remove whatever item on bottom on list?

this remove last item in listbox. using removeat method.

listbox1.items.removeat(listbox1.items.count - 1) 

using removeat method, remove item @ index provided. since full length of items in current listbox (and subtract 1 because 0 based) last item.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -