Combobox auto-fill problem

M

Maurice Mertens

Hi all,

In VB.NET you can set the DropDownStyle for a combobox to 'DropDown' or
'DropDownList'. When you set it to DropDownList, it supports auto-fill. But
when you set it to 'DropDown', the auto-fill support is gone.

How can I get auto-fill on a combobox with a dropdownstyle 'DropDown'?


--
Met vriendelijke groet / With regards / Saludos,
Moviat Automatisering


Maurice Mertens
mauricem@moviat_KillSpamWordForEMail.nl

tel: +31 162 470 534
fax: +31 162 470 502
 
K

Kevin Yu [MSFT]

Hi Maurice,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to set "auto-fill" for
DropDown style combobox. However, I don't quite understand what do you mean
by auto-fill. I didn't find such a property in ComboBox calls. Could you
explain it in detail? Thanks!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
M

Maurice Mertens

Hi Kevin,

I have a combobox which is filled with some items, i.e.:
Winter
Spring
Summer
Fall

When the combobox' 'DropDownStyle' is set to 'DropDown' and the user then
presses the 'S' key, I want the combobox to display the word 'Spring', but
that 'pring' is marked blue so this text will be edited next.
When the user then presses the 'u', the combobox has to display 'Summer',
but 'mmer' marked blue.
When the user then presses the 'p', only 'Sup' has to be displayed.

What I'm trying to say is that the combobox looks in the items collection
and auto-fill the word the user is entering.

In Access the comboboxes had this auto-fill.


--
Met vriendelijke groet / With regards / Saludos,
Moviat Automatisering


Maurice Mertens
mauricem@moviat_KillSpamWordForEMail.nl

tel: +31 162 470 534
fax: +31 162 470 502
 
K

Kevin Yu [MSFT]

Hi Maurice,

Thanks for your explanation. However, as far as I know, the ComboBox in
current version of .net framework doesn't have such property for us to use
directly. If you need this function, I think you can try to inherit from
ComboBox class and do something in the KeyPress event to achieve this.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top