473,396 Members | 2,158 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,396 software developers and data experts.

key selection in combobox

Is there a way to have multiple keystrokes select the first matching
item in a combobox? For instance, in the Doe family members combobox,
typing jo would go to Jane on the j, then John on the o keystroke.
--
Steve
--
http://www.steveclaflin.com
Nov 12 '05 #1
2 3546
Yes! Open your form in design view and select the combobox. Open properties and
look for the AutoExpand property. Set it to Yes.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
www.pcdatasheet.com
"Steve Claflin" <Pi********@cs.compost> wrote in message
news:3F***************@cs.compost...
Is there a way to have multiple keystrokes select the first matching
item in a combobox? For instance, in the Doe family members combobox,
typing jo would go to Jane on the j, then John on the o keystroke.
--
Steve
--
http://www.steveclaflin.com

Nov 12 '05 #2
Actually , they were already set that way, must be the default. But I
had added code to correct an annoying "feature" that typing the first
letter and hitting Enter fired a Change event, but left the Value
property as it was on the previous selection. Which I had "fixed" with:

cbCompany.Value = cbCompany.ItemData(cbCompany.ListIndex)

except that takes over and ends selection after one keystroke. Moving
that line to After Update solves the problem (which I had been reluctant
to do, since I wasn't "updating" anything -- the box is unbound).

Thanks for the help!

PC Datasheet wrote:

Yes! Open your form in design view and select the combobox. Open properties and
look for the AutoExpand property. Set it to Yes.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
www.pcdatasheet.com

"Steve Claflin" <Pi********@cs.compost> wrote in message
news:3F***************@cs.compost...
Is there a way to have multiple keystrokes select the first matching
item in a combobox? For instance, in the Doe family members combobox,
typing jo would go to Jane on the j, then John on the o keystroke.
--
Steve
--
http://www.steveclaflin.com

--
Steve
--
http://www.steveclaflin.com
Nov 12 '05 #3

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

Similar topics

1
by: Steve | last post by:
I have a continuous form with several unbound comboboxes in the form header. The comboboxes are used to provide criteria for the SQL of the form. The code behind the form looks like: Public Sub...
1
by: Simon | last post by:
Dear reader, With a combobox I can go to a selected record picked in the pull down list. And in the same time the record navigation field shows the selected record number from the...
2
by: jen | last post by:
i have select query that returns multiple records and populates a combobox/pulldown. once a selection from the pulldown is selected, i need to reference two or three fileds from the previous...
5
by: njb35 | last post by:
Hi all I'm beginning my foray from VBA into VB 2005 Express, and enjoying some of the efficiencies it provides! I'm stuck with some dataset handling however that I _think_ can be automated but...
0
by: jimmarq | last post by:
I am creating a windows form application in VB.NET 2.0. I have a datagridview, and one of the columns ("SelectorColumn") is a Combobox. The combobox values come from a dataset, and the column is...
2
by: jujubean | last post by:
I have a form with five comboboxes. In the first, the user can select one of four items. The other four comboxes are hidden. Based on the selection made in combobox one, I would like one of the...
1
by: BSTAFFORD | last post by:
I need help. I have a form with a 5 comboboxes. the form also contains a subform query with the saved records from those 5 combobox categories. What I'd like to happen is as a new record is...
4
by: Mtek | last post by:
Hi, We have a combo box on our page, which gets populated via a MySQL Query in PHP. What we want to do is to print the values on the page in a table that correspond the to selection from the...
0
by: pavanip | last post by:
Hi, I am facing problem with combobox in gridview.I have used combobox in gridview and i am binding data to gridview combobox from database. If i click 2 times on combobox then it is showing the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
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,...
0
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...
0
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,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.