473,473 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Stop combo box closeup event

Hi all,

I'm trying to implement right-click functionality on the drop-down
portion of a combo box. I want to show a context menu when the user
right-clicks on an item in the dropdown list - I currently have this
working, but as soon as the menu appears the dropdown portion of the
combo box disappears. I would like this to remain visible behind the
context menu.

I have handled the cbn_closeup event, but it appears as if this event
is triggered *after* the list has already been closed. Is there any
way I can stop the list from closing up in the first place?

Thanks.

Nov 17 '05 #1
1 2451
Hi,
I'm not very sure of it, but you would have to derive from it and handle it,
probably what is happening is that the control lose the focus and the
expected action is remove the list, you will have to handle this situation
in your new control, when you are about to lose the focus, check if the
context menu is the new focused control and if so do not call the base
handler.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"gabble" <ah********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi all,

I'm trying to implement right-click functionality on the drop-down
portion of a combo box. I want to show a context menu when the user
right-clicks on an item in the dropdown list - I currently have this
working, but as soon as the menu appears the dropdown portion of the
combo box disappears. I would like this to remain visible behind the
context menu.

I have handled the cbn_closeup event, but it appears as if this event
is triggered *after* the list has already been closed. Is there any
way I can stop the list from closing up in the first place?

Thanks.

Nov 17 '05 #2

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

Similar topics

0
by: Scott | last post by:
I'm using C# to build an application. 1) I have two windows forms, A and B. 2) A uses a DataSet read from SQL server. 3) The user presses a button on A to open B. 4) B is passed a pointer to...
6
by: Support4John | last post by:
a2k (9.0.6926) SP-3 Jet 4.0 SP-7 I have a form with combo box field that allows the user to select from the combo box or type in the field value that may or maynot be in the combo box field. ...
2
by: Gustavo\ | last post by:
Hi, I have a combo box in a form. It has limit to list set to "yes", and I have declared a NotOnList event procedure to take care of adding a value not on the list. Now, my problem is that,...
0
by: Karl | last post by:
Hi all, I want to do some datasource refresh when my combobox dropdown list closes sup. Which event should I call? Thanks, Karl
2
by: guy | last post by:
I have a base winform Base and a form that inherits from it Child in the base form there is an event handler for a combo box click Protected Overrideable Sub...
4
by: Steve Marshall | last post by:
I'm working on an owner-drawn combo box which has extended functionality. I have to do something to the dropdown list when it drops down, then undo it when it is closed up again. But I can't see...
4
Rabbit
by: Rabbit | last post by:
Cascading Combo/List Boxes This tutorial is to guide you in the creation of Cascading combo/list boxes. That is when you have multiple combo/list boxes where the selection of an option in one...
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
0
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,...
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
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...

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.