473,378 Members | 1,156 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Select an item from listbox using keyboard

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
May 10 '06 #1
1 5616
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

"Melson" <we****@hotmail.com> wrote in message
news:OT**************@TK2MSFTNGP04.phx.gbl...
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

May 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Deano | last post by:
I needed to have a listbox populated by locations which are stored in tblLocations. However I wanted an "All locations" entry to be at the top of the listbox. This is not in the tblLocations. The...
2
by: Hal Rosser | last post by:
I have a blind friend who is doing a pretty good job learning VS so far. he needs to be able to select multiple controls by using the keyboard. Is there a way to do this ? To select different...
1
by: bill | last post by:
I need to be able to dynamically add items to a <asp:listbox> (or HTML <select runat=server>) using clientside javascript, and retrieve the items when the page is posted back. I use this code to...
2
by: hemashiki | last post by:
hi i want to select multiple choices in listbox using ctrl key can any one suggest....plz
1
by: Sunray | last post by:
I have a form called the sales form and i have 2 sets of listboxes So what happens is. i add items form the bottom set of list boxes which are bound to a data base to the top set of list boxes which...
7
by: RADAR | last post by:
i use VC++ 6,0 and i have problems with getting keyboard system inputs and to use them to check to proceed or break the loop. for example if i want to proceed until Ctrl+z is written for input.What...
3
by: Renilkumar | last post by:
Hi, I am using .net 2.0. I have a .aspx page with vb.net as codebehind. My form has one dropdown, 2 listboxes with add & remove button. During pageload I am loading all the values from the db to...
5
by: sreenu123 | last post by:
Hi, I want to read from values from database and add to listbox then transfering items from one listbox to another listbox using C#.NET. Can any one give source code. Thanks in advance sree
1
by: gayat jain | last post by:
jsf <h:select item> how i can call bean method one click any select item
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.