Get all current itens of a listbox and after it how to add a item name to a textbox??
Get all current itens of a listbox and after it how to add a item name to a textbox??
I'm using a code to get random things to a listbox...
But I wanna know, when clicked at item of a listbox, how to show the name of the item at a textbox?
I'm using this code but it works only for the first item:
Private Sub List1_Click()
If List1.Selected(1) Then
Text5.Text = List1.List(1)
End If
End Sub
Re: Get all current itens of a listbox and after it how to add a item name to a textbox??
Because you know you are running that code from the click event you can just say.
Code:
Text5.Text = List1.Text
Casey.
Re: Get all current itens of a listbox and after it how to add a item name to a textbox??
Re: Get all current itens of a listbox and after it how to add a item name to a textbox??
Quote:
Originally Posted by dr4gunz
Get all current itens of a listbox
What do you mean by this?