473,385 Members | 2,005 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.

Q: Cancelling a combo dropdown

Hi

Is there a way to prevent the combo displaying its list of items when the
"combo arrow" is clicked?

The problem I'm trying to resolve is that depending on a Boolean value,
which is set according to other items on the form, I want to prevent the
combo from being used. I suppose I could set the combo to be disabled but
I'm wondering if there is something like

e.Cancel = True

within a combo event which I could use?

Thanks in advance
Jun 21 '06 #1
2 1364
I remember I have done this once. You need to extend the combobox
control and override the WndProc method.

G .Net wrote:
Hi

Is there a way to prevent the combo displaying its list of items when the
"combo arrow" is clicked?

The problem I'm trying to resolve is that depending on a Boolean value,
which is set according to other items on the form, I want to prevent the
combo from being used. I suppose I could set the combo to be disabled but
I'm wondering if there is something like

e.Cancel = True

within a combo event which I could use?

Thanks in advance


Jun 21 '06 #2
G .Net wrote:
Hi

Is there a way to prevent the combo displaying its list of items when the
"combo arrow" is clicked?

The problem I'm trying to resolve is that depending on a Boolean value,
which is set according to other items on the form, I want to prevent the
combo from being used. I suppose I could set the combo to be disabled but
I'm wondering if there is something like

e.Cancel = True

within a combo event which I could use?

Thanks in advance


If you don't want them to use it, disable it. Why would you need
something else? Hide it could be an option. Things you can't use that
aren't visible help the user to focus on what he can do.
--
Rinze van Huizen
C-Services Holland b.v
Jun 23 '06 #3

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

Similar topics

1
by: Dale Geffs | last post by:
I have a form with a combo box and when it (combo) gets focus I issue a .dropdown. Using A2K and SP1 everything works fine and the list drops down under the control as expected. If I use a PC with...
5
by: Paul | last post by:
I have read the posts on using Sendkeys to dropdown the list in a combo box. However, doesn't that require the combo box to have the focus? My situation is a little different. I have a text...
9
by: Bob Alston | last post by:
In 2002, "GrayJay" posted the following code: I did this in a jazz record catalogue to find composers - On a form "frmComposers" Create a text box - txtFindComposer, and add the following sub...
8
by: Lyn | last post by:
Hi, Can anyone tell me how the initial value displayed in Combo Box is determined when a form is opened? I am loading the dropdown from one field ("CategoryName") of a table, with "ORDER BY ". ...
1
by: RICHARD BROMBERG | last post by:
I have a form with a combo box. It is in the first Tab Stop when the form opens. The dropdown area should be immediately below the combo box as all others on the form, but it isn't. The...
2
by: dancole42 | last post by:
So I have a subform that lists the various items on a particular invoice. First, the user selects a product class from the Class dropdown. This is bound to the Class field in the InvioceLines...
4
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
The code below goes into the dropdown event handler for a standard combo box. It makes the dropdown as wide as the widest text entry. Unfortunately, this combo box is on the right edge of the...
2
by: biganthony via AccessMonster.com | last post by:
Hi, I decided to install Office 2003 Service Pack 3 on my home computer to test (in full knowledge that there may be some issues with it). After installation, I have noticed that with a small...
2
by: ARC | last post by:
I'm testing a user's db that contains a very large number of records. I have an invoice screen, with an invoice select dropdown box that shows all invoices, and the customer's name, etc. With...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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,...
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...

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.