I have a combobox displaying the full name of a customer (e.g. John Smith)
and would like to go to the LAST name whenever a user presses a key while on
this combobox. I have looked at the AutoCompleteMode and AutoCompleteSource
properties of the combobox, but they only key off of the FIRST name (e.g.
pressing "B" will select "Bob Smith", not "Sam Barnes"). Even FindString and
FindStringExact only appear to key off of the prefix. This combobox,
cboCustomer, has a .DataSource set to a DataView (dv) which contains two
fields, the customer's name (e.g. "John Smith") and their customer number
(e.g. 12345). The .ValueMember of this combobox is dv.CustomerNumber and the
..DisplayMember is set to dv.FullName. How can I set the AutoCompleteSource
(?) to be a substring (Last Name) of the .DisplayMember (Full Name)? I
looked at Ken Tucker's response in "Typing in a ComboBox" (04/12/2006) and it
look interesting, but I do not know if this would help me. Any help is
appreciated.
Thank you. 3 6821
memead,
Wouldn't it make more sense to display the name in the combobox as Last,
First?
Kerry Moorman
"memead" wrote:
I have a combobox displaying the full name of a customer (e.g. John Smith)
and would like to go to the LAST name whenever a user presses a key while on
this combobox. I have looked at the AutoCompleteMode and AutoCompleteSource
properties of the combobox, but they only key off of the FIRST name (e.g.
pressing "B" will select "Bob Smith", not "Sam Barnes"). Even FindString and
FindStringExact only appear to key off of the prefix. This combobox,
cboCustomer, has a .DataSource set to a DataView (dv) which contains two
fields, the customer's name (e.g. "John Smith") and their customer number
(e.g. 12345). The .ValueMember of this combobox is dv.CustomerNumber and the
.DisplayMember is set to dv.FullName. How can I set the AutoCompleteSource
(?) to be a substring (Last Name) of the .DisplayMember (Full Name)? I
looked at Ken Tucker's response in "Typing in a ComboBox" (04/12/2006) and it
look interesting, but I do not know if this would help me. Any help is
appreciated.
Thank you.
memead wrote:
I have a combobox displaying the full name of a customer (e.g. John Smith)
and would like to go to the LAST name whenever a user presses a key while on
this combobox. I have looked at the AutoCompleteMode and AutoCompleteSource
properties of the combobox, but they only key off of the FIRST name (e.g.
pressing "B" will select "Bob Smith", not "Sam Barnes"). Even FindString and
FindStringExact only appear to key off of the prefix. This combobox,
cboCustomer, has a .DataSource set to a DataView (dv) which contains two
fields, the customer's name (e.g. "John Smith") and their customer number
(e.g. 12345). The .ValueMember of this combobox is dv.CustomerNumber and the
.DisplayMember is set to dv.FullName. How can I set the AutoCompleteSource
(?) to be a substring (Last Name) of the .DisplayMember (Full Name)? I
looked at Ken Tucker's response in "Typing in a ComboBox" (04/12/2006) and it
look interesting, but I do not know if this would help me. Any help is
appreciated.
Thank you.
I have an implementation that uses a text box and a hidden (until
typing) listbox. It will present names on a "contains" basis. I am not
near the box the code is on but will post it tommorow.
LS
It would be simpler, yes. The project requirements do not allow for this,
however.
"Kerry Moorman" wrote:
memead,
Wouldn't it make more sense to display the name in the combobox as Last,
First?
Kerry Moorman
"memead" wrote:
I have a combobox displaying the full name of a customer (e.g. John Smith)
and would like to go to the LAST name whenever a user presses a key while on
this combobox. I have looked at the AutoCompleteMode and AutoCompleteSource
properties of the combobox, but they only key off of the FIRST name (e.g.
pressing "B" will select "Bob Smith", not "Sam Barnes"). Even FindString and
FindStringExact only appear to key off of the prefix. This combobox,
cboCustomer, has a .DataSource set to a DataView (dv) which contains two
fields, the customer's name (e.g. "John Smith") and their customer number
(e.g. 12345). The .ValueMember of this combobox is dv.CustomerNumber and the
.DisplayMember is set to dv.FullName. How can I set the AutoCompleteSource
(?) to be a substring (Last Name) of the .DisplayMember (Full Name)? I
looked at Ken Tucker's response in "Typing in a ComboBox" (04/12/2006) and it
look interesting, but I do not know if this would help me. Any help is
appreciated.
Thank you.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mr. B |
last post by:
Here's the situation...
You've a combobox with Items already added. Say they look like this (or even
lines of text):
10-00-232
10-00-256
10-01-006
10-01-213
10-02-200
|
by: Microsoft |
last post by:
Hi All,
Any suggestions appreciated.
I am trying to do a string search through a comboBox list,
have created a simple test which is listed below. The problem
I am having is, every time a key is...
|
by: ross kerr |
last post by:
Hi all,
I have a control that extends the ComboBox object. It
updates the selected item based on what the user enters in
the text area.
In the OnLeave event of the combobox, the selected...
|
by: VM |
last post by:
How can I implement the autocomplete functionality in a Windows comboBox?
Thanks.
|
by: ross kerr |
last post by:
Hi All,
I am extending the combobox to create a control that
selects an item based on the text the user is typing into
the text area of the control.
I have an issue that occurs only when i...
|
by: Andrus |
last post by:
I'm creating a database Winforms application using VCS Express 2005
I have some large lookup tables (may be up to 500000 records) which
contains name and id and are stored in sql server.
I...
|
by: nil |
last post by:
Hello all,
It's urgent...
i want to add autocomplete textbox facility in my application like
google. as you type it suggests option to the user..i want the same
kind of facility...i know i...
|
by: wkerplunk |
last post by:
Below is what I have build with several different languages. It works great but I need help, I am stuck.
When you click on an item in the dropdown autocomplete div it does a mousedown function...
|
by: ezyeric13 |
last post by:
I have a series of ComboBox's Bound to a DataGridView and I turned the
AutoComplete on for them so they list all the items in a certain
collumn of the DataGridView.
The problem is that when you...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
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...
|
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...
| |