Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21273

Copy a item name clicked on in a listbox to a label caption.

$
0
0
Hi there everyone. I am working on a prog where a list of items are in a listcalled game list. I also have a label called GameNameLBL.

I can click on the listbox items and have the index copy over into the GameNameLBL caption by doing this.

Private Sub GameList_Click()
GameNameLBL.Caption = (GameList.ListIndex)
End Sub

but I am not looking for the list index, instead I am looking to copy the item itself. Would anyone know of what I am missing? Thanks a ton!!!

Viewing all articles
Browse latest Browse all 21273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>