|
-
Jan 18th, 2008, 07:06 PM
#1
Thread Starter
Addicted Member
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
-
Jan 18th, 2008, 07:10 PM
#2
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.
-
Jan 18th, 2008, 07:14 PM
#3
Thread Starter
Addicted Member
Re: Get all current itens of a listbox and after it how to add a item name to a textbox??
-
Jan 19th, 2008, 06:04 AM
#4
Re: Get all current itens of a listbox and after it how to add a item name to a textbox??
 Originally Posted by dr4gunz
Get all current itens of a listbox
What do you mean by this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|