Quantcast
Viewing all articles
Browse latest Browse all 21195

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

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 21195

Trending Articles