473,767 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Auto drop down combobox

I've got what at first appears to be a really simple problem.

I have a dropdown combobox with a list of names in, the user can enter text
into the edit portion or drop the combobox and select a name.

What I need to do is to drop the combobox when the user types and find the
nearest entry to what the user entered (so if they typed A, Andy may be the
nearest entry, the list should scroll, but not select, unless the user uses
arrow down or clicks with the mouse). This should progress this way as the
user enters more text.

I can use the DroppedDown property to drop the combobox, but if I do this in
the TextChanged event, then the nearest item in the combobox is selected and
the text is put into the edit box. I've played around with various state
variables, but none of them give me the functionality I require.

The same problem was solved previously in C++, but can I get the C# code to
work...

Any help would be greatly appreciated?

TIA

- Andy
Nov 16 '05 #1
0 2602

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

Similar topics

3
1268
by: aw | last post by:
Hi all, I'm hoping that someone else has had this peculiar problem, and better yet, that the solution is simple enough. I have a form with a combo box bound to "name" in which the source is a table with 100 names in it. For some inexplicable reason, the combo box decided to show only a few of the names when clicking on the drop down: If I select the name 'Bernice', I
17
14821
by: Aussie Rules | last post by:
Hi, I want to have a single line combo box dropdown, but where i can selected multiple items in the drop down via a check box... I can see one in the standard tool box... is there one ? If not any suggestions as to where to get one from.
5
2168
by: xxbmichae1 | last post by:
Is there a way to get a drop down list to automatically drop down on focus? Thanks! Michael
0
2104
by: TD | last post by:
I have a combobox that is sometimes slow to drop down when clicked on. If you select an item in the list that is near the top of the list then the next time you click on the combobox it drops down fast for you to make another selection. If you click on an item from the list that is way down the list then the next time you click on the combobox it takes several seconds for it to drop down so you can make another selection The combobox is...
7
26202
by: hung tran | last post by:
Hi, I'd like to drop down a combobox after validating the Leave() event, how can I do that ? Thanks
3
5732
by: John | last post by:
Does anyone have some sample code for building a combobox that will automatically list the remaining folders while you type? I'm looking for functionality similar to the "Look in:" combobox in the Search Companion panel in Windows Explorer. If you type "C:\" it will open the drop down and fill it in with all of the directories on C:\. Then as you type letters it will re-fill the drop down with only the folders that match your typing. ...
6
2366
by: zacks | last post by:
I have an application I am developing that has a Combo Box that is intended to show a list of available tables in the selected DSN. I have put code in the control's DropDown event handler to clear the item list and reload it from the currently specified DSN (in a Text Box control on the same form). This works well. BUT ... if the specified DSN is invalid, I can display an appropriate error message, but then then empty dropdown list is...
0
3141
by: mjohnson0321 | last post by:
I am trying to incorporate a CSS drop-down menu into a site (suckerfish menu). The menu gets lost behind the content below it, but only on one of the drop downs (News). The error occurs on all of the browsers I have tested it on (IE6, IE7, Firefox, Opera and Safari). It is probably something simple, but I can't find it! Here is the CSS (using external style sheets): style-temp.css (Main style sheet for the site): * { font-family:...
3
3542
by: - HAL9000 | last post by:
I am trying to get an event when the drop-down Combo Box goes away / reverts back to showing a single item. For example, clicking the box's down arrow, to remove the drop-down window, doesn't seem to generate any event. Not even a mouse event. That seems a little odd. Besides not finding a public event method, I can't seem to find a protected method to over-ride either.
0
9571
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10168
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
10009
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
9959
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,...
1
7381
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
6651
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
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.