By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,837 Members | 1,813 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,837 IT Pros & Developers. It's quick & easy.

Combox Listbox ??

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.