473,756 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 _KillSpamWordFo rEMail.nl

tel: +31 162 470 534
fax: +31 162 470 502
Jul 21 '05 #1
3 2122
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 _KillSpamWordFo rEMail.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
2796
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
1004
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 examples that I've tried either bulky and simply not elegant and inefficient or does not work properly. Maybe I was just not lucky and patient enough to try more examples :) instead I wrote my own code. Hope it helps someone. I appreciate all comments...
2
2552
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 to fix this I would like to be able to adjust the width of the options to make them wider when I click on the drop down box. Is this possible? Thanks,
3
2234
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. Thanks, /*Raj*/
9
2468
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 disabled. There is no readonly property for a combobox like there is for a text box. Thx, Jason
5
1842
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 the dropdown and enters a new character which the box auto scrolls to. The combobox displays the selected value but when I reference the text and selected value properties they still have the old values. Has anyone seen a problem like this...
4
13468
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 is my question... How do I autoselect this item? I know the following code will select
1
1559
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 so good.
1
3125
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 display long items! Isn't that what PreferredSize is uspposed to give? Am I missing something or is there another way to make sure that my comboboxes are wide enough to display all the text in them? Thanks!
3
17246
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 query.
0
10014
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9844
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9819
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9689
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7226
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6514
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5289
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3780
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3326
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.