Select an item from listbox using keyboard

  • Thread starter Thread starter Melson
  • Start date Start date
M

Melson

Hi

Can anyone give suggestions please. I need to create a list (probably using
listbox) and fill with names in the listbox. When I enter a name (maybe
Adam) in a program (notepad, MS words, other program), the list of names
appear.

How can I select the name in the listbox with the keyboard if i want to
select the eighth name in the list.
How can I make the listbox appear when I enter the first 2 characters in the
program.

Please help. Thanks.


Regards
Melson
 
So you are going to have a textbox where you type the character and you want
to scroll your listbox accordingly.., assuming this you would do extended
search on typing in the textbox i.e. keypress or keydown event, where if you
type certain letter, you can look for the item in the listbox and set the
SelectedItem to that found item..., it would efficient if you had the
listbox in bound mode to a DataSet... so

Also there are some controls in the market that perform this readily... you
can buy them..

Vijay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top