473,385 Members | 1,317 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,385 software developers and data experts.

down arrow on combo box requires two clicks to open

I include code for data entry that causes the combo boxes to open On Enter : <cboName>.dropdown. This works fine and the combo boxes also open if I click within the box (On Enter). However, with this configuration, I need to click the box's down arrow twice. I can see the box gets opened but then closed again with the first click. The subsequence click results in the box opening and staying open. If I step through the code, it also remains open on one click on the arrow. Can someone tell me what is going on here?
Jun 1 '14 #1

✓ answered by twinnyfo

tidal pool,

Instead of using the OnEnter Event, use the OnGotFocus Event. I tested this and when I tab into the Combo Box, it expands and when I click on the Combo Box (whether in the text field or the down arrow), it expands.

Hope this hepps!

4 2347
NeoPa
32,556 Expert Mod 16PB
Clicking on the arrow counts as entering the control.

Click on arrow --> Runs code to drop the box down --> Recognises the arrow is clicked so toggles the box back up again --> Second click doesn't trigger the OnEnter procedure as focus was alreay at the control so drops the box down.
Jun 1 '14 #2
Is there a solution to get around this? I need the box to dropdown OnEnter, but also need folks to be able to click the dropdown arrow without having to click it twice.
Jun 4 '14 #3
twinnyfo
3,653 Expert Mod 2GB
tidal pool,

Instead of using the OnEnter Event, use the OnGotFocus Event. I tested this and when I tab into the Combo Box, it expands and when I click on the Combo Box (whether in the text field or the down arrow), it expands.

Hope this hepps!
Jun 9 '14 #4
NeoPa
32,556 Expert Mod 16PB
Nice answer Twinny. Not had time to look into it and you'ved saved me a job :-)
Jun 10 '14 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Bob Alston | last post by:
Anyone know how to hide the down arrow that is at the far right of a combo box? I have seen it done (with auto display drow-down, of course). Bob
2
by: VB Programmer | last post by:
I have a text box. If the user hits the down arrow while in the text box I want to process some code. In the KeyPress event of the text box how do I capture the down arrow (I assume Keys.Down)?...
5
by: Ivan V via DotNetMonster.com | last post by:
Hi I would like to knwo if I could activate the up and down arrow in a window form which have the same function as using the tab button. Thanks for all! best rgds, Ivan Vong -- Message...
7
by: fniles | last post by:
I am using VB.Net 2003 and MS Access (connecting using OleDBConnection). I read using DataAdapter and DataSet, not DataReader. When many people try to access the database at the same time, I get...
1
by: Jenny | last post by:
Dear all, I have one select which lists one visible element. I want this select can show scrollbar after I click its down arrow, so that i can use the scrollbar to select the element i want. ...
0
by: cmrhema | last post by:
Hello I am using ASP.net 2.0 with VC# 2005. I have populated a listbox as below and when I click on the value on the list box I display out the related values. All works fine. But I have one...
14
by: DanicaDear | last post by:
I have a QTY field and an ITEM field. User inputs a number into the QTY field, then tabs over the the next field and there's a down arrow on the right hand side of the field that you click to choose...
12
Dr Cake
by: Dr Cake | last post by:
So, I've been working on a project recently, and the only thing remaining to do is a detector to whenever down arrow key is pressed. The down arrow key can only trigger when a certain check box...
0
by: buggs2012 | last post by:
Hi Guru’s I need the help of an expert from this forum on my question below as it is well beyond the level of knowledge that I have for programming in JavaScript. Given the existing...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.