473,800 Members | 2,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5638
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******** ******@TK2MSFTN GP04.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
7563
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 resulting list will be used to provide a query parameter and the user can choose all locations (the default) or a single, specific location. In the open event of the form containing the listbox I wrote the following code to achieve this. Could...
2
1573
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 controls, he can tab, but holding down shift just tabs backwards. He needs to be able to tab through the controls, and select the ones he needs to align, etc. He has a program called "Jaws" that reads the controls to his earphones, so he can tell...
1
12793
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 add the option to the listbox. It works for <select> or <asp:listbox> controls. var opt = document.CreateElement("OPTION"); opt.text = "test"; opt.value="test";
2
2959
by: hemashiki | last post by:
hi i want to select multiple choices in listbox using ctrl key can any one suggest....plz
1
4033
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 are not bound, I select from the bottom set and add to the top set which works fine, but now i decide to remove an item from the top set. when i tried to use a remove item code it worked fine, it did delete the item form the list but it added...
7
3418
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 will the compiler do?Does it accept Ctrl+Z as a normal string input , char* input, or a char input which has ASCII 26... suppose i have a loop that does the following: -first check the choice -if not Ctlr+Z continue -else go to the next stage. ...
3
3766
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 dropdown and after pageload, If I select value from the dropdown will load the data into the first listbox. I can select 1 or multiple values in the listbox and click on Add button will copy the data from source listbox to destination. Now how do...
5
11027
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
2790
by: gayat jain | last post by:
jsf <h:select item> how i can call bean method one click any select item
0
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9550
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10501
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10273
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10250
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10032
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7574
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5603
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2944
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.