Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox help

Status
Not open for further replies.

bigfoot

Programmer
May 4, 1999
1,779
US
Simple question:

How do I display the currently selected item in a listbox??

Listbox1.SelectedIndex gives me the number, but .SelectedValue gives me an error.

lb.items.add("gary")
lb.items.add("joe")
lb.items.add("bill")

Now, how do I get'em back?
 
I am populating it from an Access table of Names, but listbox1.selecteditem.value gives an error too.

Whay did they make this so hard. VB6 was so much better. Ya gotta be a C geek to understand this .net stuff.

No offense to the C people, you can have that language.
 
Download 101 samples of VB.NET from microsoft.com.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top