468,290 Members | 2,024 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,290 developers. It's quick & easy.

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 1162
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Dale Geffs | last post: by
1 post views Thread by RICHARD BROMBERG | last post: by
2 posts views Thread by dancole42 | last post: by
4 posts views Thread by =?Utf-8?B?cmFuZHkxMjAw?= | last post: by
2 posts views Thread by biganthony via AccessMonster.com | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.