473,756 Members | 9,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Auto Expand Drop Down Menu Box

I've got a control on my form that allows the user to select a record
based on a form field (in this example, the drop down menu shows the
company name, followed by the contact name but uses the contactid to
change the data on the form). Most users, start typing the company
name which will auto complete itself with the first entry with the
letters typed so far. They can then click on the arrow to view the
listings, select the one they want and the form changes.

However, I have a bunch of mini-me's in the office, that like to do
everything by keyboard if possible. So they are using ALT+Down Arrow
to expand the list. Is it possible to code the control to auto expand
when entered, preferrable not till the first letter is typed?

Thanks a bunch!

mike
(Dim mike=novice coder)

Sep 5 '07 #1
4 14193
"magmike" <ma******@yahoo .comwrote in message
news:11******** *************@k 79g2000hse.goog legroups.com...
I've got a control on my form that allows the user to select a record
based on a form field (in this example, the drop down menu shows the
company name, followed by the contact name but uses the contactid to
change the data on the form). Most users, start typing the company
name which will auto complete itself with the first entry with the
letters typed so far. They can then click on the arrow to view the
listings, select the one they want and the form changes.

However, I have a bunch of mini-me's in the office, that like to do
everything by keyboard if possible. So they are using ALT+Down Arrow
to expand the list. Is it possible to code the control to auto expand
when entered, preferrable not till the first letter is typed?

Thanks a bunch!

mike
(Dim mike=novice coder)
Lets say your combo is called Combo1. You need an OnEnter event proc that
looks like:

Private Sub Combo1_Enter()
Me.Combo1.Dropd own
End Sub

Sep 5 '07 #2
On Sep 5, 12:03 pm, "Stuart McCall" <smcc...@myunre albox.comwrote:
"magmike" <magmi...@yahoo .comwrote in message

news:11******** *************@k 79g2000hse.goog legroups.com...


I've got a control on my form that allows the user to select a record
based on a form field (in this example, the drop down menu shows the
company name, followed by the contact name but uses the contactid to
change the data on the form). Most users, start typing the company
name which will auto complete itself with the first entry with the
letters typed so far. They can then click on the arrow to view the
listings, select the one they want and the form changes.
However, I have a bunch of mini-me's in the office, that like to do
everything by keyboard if possible. So they are using ALT+Down Arrow
to expand the list. Is it possible to code the control to auto expand
when entered, preferrable not till the first letter is typed?
Thanks a bunch!
mike
(Dim mike=novice coder)

Lets say your combo is called Combo1. You need an OnEnter event proc that
looks like:

Private Sub Combo1_Enter()
Me.Combo1.Dropd own
End Sub- Hide quoted text -

- Show quoted text -
I put this in the OnChange property, which waits to pop it up until
typing takes place, which is what I wanted. That works great when
using all keyboard, but when someone uses the mouse to click on their
selection, the combo box pops it back up after clicking. Is there a
way to use the OnChange property so it stays put until the keyboarders
start typing but that it wont stay up when someone uses their mouse to
click on a selection?

(NOTE - the keyboarders are typing until they get to their desired
record, then hitting the ENTER button)

Thanks!

Sep 5 '07 #3
On Sep 5, 3:16 pm, magmike <magmi...@yahoo .comwrote:
On Sep 5, 12:03 pm, "Stuart McCall" <smcc...@myunre albox.comwrote:
"magmike" <magmi...@yahoo .comwrote in message
news:11******** *************@k 79g2000hse.goog legroups.com...
I've got a control on my form that allows the user to select a record
based on a form field (in this example, the drop down menu shows the
company name, followed by the contact name but uses the contactid to
change the data on the form). Most users, start typing the company
name which will auto complete itself with the first entry with the
letters typed so far. They can then click on the arrow to view the
listings, select the one they want and the form changes.
However, I have a bunch of mini-me's in the office, that like to do
everything by keyboard if possible. So they are using ALT+Down Arrow
to expand the list. Is it possible to code the control to auto expand
when entered, preferrable not till the first letter is typed?
Thanks a bunch!
mike
(Dim mike=novice coder)
Lets say your combo is called Combo1. You need an OnEnter event proc that
looks like:
Private Sub Combo1_Enter()
Me.Combo1.Dropd own
End Sub- Hide quoted text -
- Show quoted text -

I put this in the OnChange property, which waits to pop it up until
typing takes place, which is what I wanted. That works great when
using all keyboard, but when someone uses the mouse to click on their
selection, the combo box pops it back up after clicking. Is there a
way to use the OnChange property so it stays put until the keyboarders
start typing but that it wont stay up when someone uses their mouse to
click on a selection?

(NOTE - the keyboarders are typing until they get to their desired
record, then hitting the ENTER button)

Thanks!
Try this

Private Sub Combo1_KeyPress (KeyAscii As Integer)
If Len(Me.Combo1.T ext) = 0 Then
Me.Combo1.Dropd own
End If
End Sub

Sep 5 '07 #4
On Sep 5, 2:59 pm, lgeastw...@gmai l.com wrote:
On Sep 5, 3:16 pm, magmike <magmi...@yahoo .comwrote:


On Sep 5, 12:03 pm, "Stuart McCall" <smcc...@myunre albox.comwrote:
"magmike" <magmi...@yahoo .comwrote in message
>news:11******* **************@ k79g2000hse.goo glegroups.com.. .
I've got a control on my form that allows the user to select a record
based on a form field (in this example, the drop down menu shows the
company name, followed by the contact name but uses the contactid to
change the data on the form). Most users, start typing the company
name which will auto complete itself with the first entry with the
letters typed so far. They can then click on the arrow to view the
listings, select the one they want and the form changes.
However, I have a bunch of mini-me's in the office, that like to do
everything by keyboard if possible. So they are using ALT+Down Arrow
to expand the list. Is it possible to code the control to auto expand
when entered, preferrable not till the first letter is typed?
Thanks a bunch!
mike
(Dim mike=novice coder)
Lets say your combo is called Combo1. You need an OnEnter event proc that
looks like:
Private Sub Combo1_Enter()
Me.Combo1.Dropd own
End Sub- Hide quoted text -
- Show quoted text -
I put this in the OnChange property, which waits to pop it up until
typing takes place, which is what I wanted. That works great when
using all keyboard, but when someone uses the mouse to click on their
selection, the combo box pops it back up after clicking. Is there a
way to use the OnChange property so it stays put until the keyboarders
start typing but that it wont stay up when someone uses their mouse to
click on a selection?
(NOTE - the keyboarders are typing until they get to their desired
record, then hitting the ENTER button)
Thanks!

Try this

Private Sub Combo1_KeyPress (KeyAscii As Integer)
If Len(Me.Combo1.T ext) = 0 Then
Me.Combo1.Dropd own
End If
End Sub- Hide quoted text -

- Show quoted text -
Perfect! Thanks!

Sep 5 '07 #5

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

Similar topics

4
2101
by: Angie H. | last post by:
Anyone know how to create a drop down menu where the user can enter text also? If they do not want to choose an answer from the drop down menu, the users can just enter their own answers in the drop down box. Anyone know if this is possible? Thankx! Angie
1
2437
by: M.L. | last post by:
Hi NG, I hope someone in here is able to help me in this matter. The problem: I have created a Javascript drop-down menu which expands when moving the mouse into a tablecell (calls my Expand() function at onMouseover on the <td>-element). My question is now this: How do I delay the expansion of the menu for e.g. 500 ms in order to keep it from happening "by accident". A
2
2583
by: hemanth.singamsetty | last post by:
Hello there, I've a drop down menu (created using CSS & Javascript -- see code below). My problem is, whenever I click a link on the menu the new page replaces the current page (and the menu disappears). Is there a way, I can keep the menu always on top. ( A good example of what I'm looking for is similar to the menu bar in http://www.milonic.com/ ).
2
1781
by: Krustov | last post by:
If you double click on a empty form box a drop down menu will appear . But if the form box has text content - then double clicking on the form box has no effect and a drop down menu doesnt appear . Or at least it doesnt in IE v7 . A google search only really brought up the usual beginner type of form tutorials .
4
9296
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me if it works, and if it does not, tell me why it does not work. Thanks.
22
3466
by: Archanak | last post by:
Hi, I am using 2-level CSS Drop Down Menu in my perl/CGI program. here is the code. #!c:/perl/bin/perl.exe use CGI qw(:standard);
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
1537
by: nyalugwe | last post by:
Hello, I am not at all experienced in Javascript so please bear with me. I'm trying to create a drop-down menu that will work in IE, and trying to use some Javascript code that I got from here. It is supposed to make the menu show up by mouseover. Unfortunately nothing happens (no error codes either) - I don't see the menu when I roll over the title with the mouse (although it works in Firefox, so I know the problem is with the IE-specific...
1
4455
by: janakrai | last post by:
how to auto expand drop down combo box in onfocus event like click event
0
9292
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9901
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
9878
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
9728
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
7282
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
6551
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
5322
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3827
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
3392
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.