473,396 Members | 1,773 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.

Combobox auto-fill problem

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
Jul 21 '05 #1
3 2088
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."

Jul 21 '05 #2
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
Jul 21 '05 #3
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."

Jul 21 '05 #4

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

Similar topics

13
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
0
by: Michael Shapiro~ | last post by:
For all of you who are searching for auto complete functionality in ..net combobox. I wrote this code yesterday after being unable to find something usable and workable on the internet. All...
2
by: bboyle18 | last post by:
Hi, I have a combobox that is a specific width that must not be adjusted. However, the options in this combobox are very wide and therefore I cannot see the whole text of the option. In order...
3
by: RajW | last post by:
Is it possible to have an auto complete ComboBox in ASP.NET? I would like to create a ComboBox that functions similarly to the way that IE will try to autocomplete a URL as you type it in. ...
9
by: Jason Simard via .NET 247 | last post by:
Hi, Does anyone know a way to make a combobox "read-only", similar to the read-only property of a textbox? In essence, make a combobox readonly...making the combobox text not gray out but be...
5
by: Brian | last post by:
I've setup a custom combobox control that allows a multikey selections. This lets the user enter key presses and the combo scrolls to the matching selection. I run into a bug when the user opens...
4
by: Drum2001 | last post by:
I have a combobox that is populated from a button on the form. One pushes this button and the following happens: !! = Me.ItemName So the combobox no shows whatever was in Me.ItemName. Here...
1
by: Simon | last post by:
Dear reader, One of the properties of a field is "Auto expand". Is this the property to able and unable the expend by typing. My experience with "Expend by typing" in a combobox is not...
1
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
Hi, In a C#.Net2.0 Winforms application I have some combo boxes. I ind these boxes to enum values and then call ComboBox.Size = ComboBox.PreferredSize: But, the combo box is never wide enough to...
3
by: Simon van Beek | last post by:
Dear reader, What can be wrong in my ComboBox, the property "Auto Expand" is set to Yes, but by typing in the ComboBox it doesn't expand. Is this because the source of the ComboBox is a...
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
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
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
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...
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,...

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.