Hey everyone,
I have a listBox that contains number of items & I have a textbox,Command button.
What I want is that once I press on the command button,the item which is written in the textbox is now highlighted in the listbox
I use VB6
Please help !
Boshra Nour
0
Newbie Poster
Recommended Answers
Jump to Post
- You'll need to use the list Property of the list box control.
- You'll need to use some kind of loop to search through the values of the list.
- You'll use your code to match the value of the text box to the value of the item in the List box.
…
Jump to PostYou have a MultiSelect property on the list box that should handle what you want to do.
There are 3 properties. You'll have to choose the appropriate value.
Hint: Only one will work for your desired outcome. And you'll have to change the logic on the if / …
All 7 Replies
hkdani
39
Posting Pro in Training
Boshra Nour
0
Newbie Poster
Boshra Nour
0
Newbie Poster
hkdani
39
Posting Pro in Training
Boshra Nour
0
Newbie Poster
dedenfk
0
Newbie Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.