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

Combox Listbox ??

Hello, I have a combox that I am trying to get to work in the following
fashion.

As you type in the combox that the item that matches what you are type is
selected.

as you type a last name:

Leyman

when L is typed
'Laner' is selected (first item that starts with L)

When Le is Typed
'Leans' is selected (first items that starts with La)

When Ley is Typed
'Ley' is selected (first items that starts with Lay)

etc.

Am I using the wrong control. setting the combobox property to DropDownList
comes close but it does not allow for typing the name it only goes to the
first letter in the Item (i.e. 'L')

Any suggestions will be greately appreciated.

Thanks,
Chuck
Jul 21 '05 #1
4 1787
Hi Charles,

Take a look at this link -
http://support.microsoft.com/Default.aspx?id=319946 . I think this is what
you're looking for.

Regards,
Peter Jausovec
(http://blog.jausovec.net)

"Charles A. Lackman" <Ch*****@CreateItSoftware.net> je napisal v sporočilo
news:uV*************@TK2MSFTNGP12.phx.gbl ...
Hello, I have a combox that I am trying to get to work in the following
fashion.

As you type in the combox that the item that matches what you are type is
selected.

as you type a last name:

Leyman

when L is typed
'Laner' is selected (first item that starts with L)

When Le is Typed
'Leans' is selected (first items that starts with La)

When Ley is Typed
'Ley' is selected (first items that starts with Lay)

etc.

Am I using the wrong control. setting the combobox property to
DropDownList comes close but it does not allow for typing the name it only
goes to the first letter in the Item (i.e. 'L')

Any suggestions will be greately appreciated.

Thanks,
Chuck

Jul 21 '05 #2
Hi Peter,

Everyone misses the point on this - what he wants is a dropdownlist that
autocompletes.

Bernie Yaeger

"Peter Jausovec" <pe***@jausovec.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi Charles,

Take a look at this link -
http://support.microsoft.com/Default.aspx?id=319946 . I think this is what
you're looking for.

Regards,
Peter Jausovec
(http://blog.jausovec.net)

"Charles A. Lackman" <Ch*****@CreateItSoftware.net> je napisal v sporočilo
news:uV*************@TK2MSFTNGP12.phx.gbl ...
Hello, I have a combox that I am trying to get to work in the following
fashion.

As you type in the combox that the item that matches what you are type is
selected.

as you type a last name:

Leyman

when L is typed
'Laner' is selected (first item that starts with L)

When Le is Typed
'Leans' is selected (first items that starts with La)

When Ley is Typed
'Ley' is selected (first items that starts with Lay)

etc.

Am I using the wrong control. setting the combobox property to
DropDownList comes close but it does not allow for typing the name it
only goes to the first letter in the Item (i.e. 'L')

Any suggestions will be greately appreciated.

Thanks,
Chuck


Jul 21 '05 #3
Hi,

It can be done almost in the same manner. You just need a global string
where you save the user's input and then in KeyUp event you search for it in
combobox and set the appropriate index.

--
Regards,
Peter Jausovec
(http://blog.jausovec.net)
"Bernie Yaeger" <be*****@cherwellinc.com> je napisal v sporočilo
news:ee**************@TK2MSFTNGP11.phx.gbl ...
Hi Peter,

Everyone misses the point on this - what he wants is a dropdownlist that
autocompletes.

Bernie Yaeger

"Peter Jausovec" <pe***@jausovec.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi Charles,

Take a look at this link -
http://support.microsoft.com/Default.aspx?id=319946 . I think this is
what you're looking for.

Regards,
Peter Jausovec
(http://blog.jausovec.net)

"Charles A. Lackman" <Ch*****@CreateItSoftware.net> je napisal v
sporočilo news:uV*************@TK2MSFTNGP12.phx.gbl ...
Hello, I have a combox that I am trying to get to work in the following
fashion.

As you type in the combox that the item that matches what you are type
is selected.

as you type a last name:

Leyman

when L is typed
'Laner' is selected (first item that starts with L)

When Le is Typed
'Leans' is selected (first items that starts with La)

When Ley is Typed
'Ley' is selected (first items that starts with Lay)

etc.

Am I using the wrong control. setting the combobox property to
DropDownList comes close but it does not allow for typing the name it
only goes to the first letter in the Item (i.e. 'L')

Any suggestions will be greately appreciated.

Thanks,
Chuck



Jul 21 '05 #4
Hi Peter,

I wish it were that simple. I've tried it and it doesn't work.

Can you have a crack at it? If you find a solution, please let me know.

Bernie

"Peter Jausovec" <pe***@jausovec.net> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
Hi,

It can be done almost in the same manner. You just need a global string
where you save the user's input and then in KeyUp event you search for it
in combobox and set the appropriate index.

--
Regards,
Peter Jausovec
(http://blog.jausovec.net)
"Bernie Yaeger" <be*****@cherwellinc.com> je napisal v sporočilo
news:ee**************@TK2MSFTNGP11.phx.gbl ...
Hi Peter,

Everyone misses the point on this - what he wants is a dropdownlist that
autocompletes.

Bernie Yaeger

"Peter Jausovec" <pe***@jausovec.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi Charles,

Take a look at this link -
http://support.microsoft.com/Default.aspx?id=319946 . I think this is
what you're looking for.

Regards,
Peter Jausovec
(http://blog.jausovec.net)

"Charles A. Lackman" <Ch*****@CreateItSoftware.net> je napisal v
sporočilo news:uV*************@TK2MSFTNGP12.phx.gbl ...
Hello, I have a combox that I am trying to get to work in the
following fashion.

As you type in the combox that the item that matches what you are type
is selected.

as you type a last name:

Leyman

when L is typed
'Laner' is selected (first item that starts with L)

When Le is Typed
'Leans' is selected (first items that starts with La)

When Ley is Typed
'Ley' is selected (first items that starts with Lay)

etc.

Am I using the wrong control. setting the combobox property to
DropDownList comes close but it does not allow for typing the name it
only goes to the first letter in the Item (i.e. 'L')

Any suggestions will be greately appreciated.

Thanks,
Chuck



Jul 21 '05 #5

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

Similar topics

1
by: VIJAY KUMAR | last post by:
Hi all, I have a problem with combobox. I have 2 comboxes cmbcategory and cmbsubcategory. I intialized cmbcategory with sum values from database on Form_Load. when i select a vlue from the...
0
by: raj | last post by:
Please Help with the combox DisplayValue property private void cboClient_SelectionChangeCommitted(object sender, System.EventArgs e) { String strSQL; strSQL = "SELECT F.FollowUpPerson FROM...
3
by: Alpha | last post by:
This is a Window based application. How do I get my combox listing to display in sorted order by DataMember? I inserted a blank row to the dataset table which is the datasrouce for the comboBox...
2
by: Alpha | last post by:
I have a window application. On one of the form, there is a listbox and a few combox. The lstSchItem has a dataview as a datasource. The comboxes are bind to its selected value but through the...
5
by: Charles A. Lackman | last post by:
Hello, I have a combox that I am trying to get to work in the following fashion. As you type in the combox that the item that matches what you are type is selected. as you type a last name:...
2
by: Bob | last post by:
The scenario is that of the employees table wherein there's an EmployeeId and a ReportsTo field in the same table. The combobox is one in a datagrid view that lets you select an employee from the...
1
by: neo1ra | last post by:
Hi, I'm doing a search combox to pop up and specific record. Everything is working fine until I make a change to the record that I'm working on and try to move to other record. A error message...
2
by: summiyashaheen | last post by:
how to read the valuemember of the combox whose data source is a detaset. i have assigned the properties of displaymember and valuemember . display member cis visible but i cant get the value member...
1
by: dewgan | last post by:
I have a form with a combox box where the list is populated via a linked table. This works fine. I have a text box that is filled with the name selected in the combox box. That name is then added...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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,...
0
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...

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.