|
-
May 12th, 2016, 07:19 AM
#1
Thread Starter
Member
Listbox to Textbox
Hello everyone
I wonder if it's possible to get textbox the value of a listbox without selecting this value
Thank you
-
May 12th, 2016, 07:30 AM
#2
Thread Starter
Member
Re: Listbox to Textbox
for example I want the first value in the listbox go to the first textbox , the second value for the SECOND textbos and so on, but without having to select the values in the list box
-
May 12th, 2016, 07:47 AM
#3
Re: Listbox to Textbox
Listboxes have an Item property that contains the items in the listbox. Item(0) being the first one, Item(1) being the second and so on.
-tg
-
May 12th, 2016, 08:09 AM
#4
Thread Starter
Member
Re: Listbox to Textbox
 Originally Posted by techgnome
Listboxes have an Item property that contains the items in the listbox. Item(0) being the first one, Item(1) being the second and so on.
-tg
i try
textbox1.text = Listbox1.item(0)
but not work
-
May 12th, 2016, 09:32 AM
#5
Re: Listbox to Textbox
That's about as meaningful as the reply you're about to get.
Try removing the eels from your hovercraft.
What do you mean "but not work"?
Did you get an error? Did something happen that shouldn't have? Did the wheels fall off your car? Did your fingers fall off?
We're not clairvoyant and we're not sitting in your lap, so we don't see what you see. You need to be a little more clearer.
In my signature block, there's a link on how to remove eels from your hovercraft. Give it a read, won't take too long.
-tg
-
May 12th, 2016, 09:56 AM
#6
Thread Starter
Member
Re: Listbox to Textbox
 Originally Posted by techgnome
That's about as meaningful as the reply you're about to get.
Try removing the eels from your hovercraft.
What do you mean "but not work"?
Did you get an error? Did something happen that shouldn't have? Did the wheels fall off your car? Did your fingers fall off?
We're not clairvoyant and we're not sitting in your lap, so we don't see what you see. You need to be a little more clearer.
In my signature block, there's a link on how to remove eels from your hovercraft. Give it a read, won't take too long.
-tg
its solved,
just does not carry the data automatically when the listbox is filled ,
-
May 12th, 2016, 10:13 AM
#7
Re: Listbox to Textbox
of course it doesn't... it does it only when you tell it to... it's not a binding you're adding, it's taking the current value and COPYING it to the text box...
-tg
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
|