Combobox DoubleClick event NEVER FIRES?!?!? 
Author Message
 Combobox DoubleClick event NEVER FIRES?!?!?

Am I just having a bad night... or is the following a known condition:

I've placed some textboxes and some comboboxes on a VB6 Tab Control.
I've placed code in these control's "DoubleClick" event.

When I double click the textboxes, there's no problem; the Double
Click event fires every time.

On the other hand, when I double click the ComboBoxes... their
DoubleClick event *NEVER* fires?!?!?!

As I say, I hope I'm just having a bad night.  Can somebody help me
out here?  Thanks in advance.



Thu, 31 Jul 2003 09:56:57 GMT  
 Combobox DoubleClick event NEVER FIRES?!?!?


Quote:
> On the other hand, when I double click the ComboBoxes... their
> DoubleClick event *NEVER* fires?!?!?!

Double-clicking a combo is a completely non-standard action. When is the
last time you actually double-clicked one? What are you trying to do?


Thu, 31 Jul 2003 14:00:26 GMT  
 Combobox DoubleClick event NEVER FIRES?!?!?
Jeff, thanks as always for responding!  I do know that there are
alternatives to what I am trying to allow the user to do by
double-clicking a ComboBox.  And I certainly take your word that it is
a 'completely non-standard action'.

What provoked me to post the message is that (regardless I guess of
*why* I wanted to use the event)... a Combobox event that clearly
exists as a programming option... doesn't seem to fire!

If you (or anyone else reading this) have another moment, I'd be
curious to know if you've experienced this same surprising limitation.
Again, it's not about the merits of placing code in the Combobox
event, my curiosity is more about why the event doesn't seem to
happen!

Thanks again.  Looking forward to further comments.

On Sun, 11 Feb 2001 01:00:26 -0500, "Jeff Johnson"

Quote:



>> On the other hand, when I double click the ComboBoxes... their
>> DoubleClick event *NEVER* fires?!?!?!

>Double-clicking a combo is a completely non-standard action. When is the
>last time you actually double-clicked one? What are you trying to do?



Fri, 01 Aug 2003 03:40:54 GMT  
 Combobox DoubleClick event NEVER FIRES?!?!?
Rick--

Check the combo box's Style property. It has to be set to 1 for this event to
fire. Don't ask me why.



Sat, 02 Aug 2003 04:24:58 GMT  
 Combobox DoubleClick event NEVER FIRES?!?!?


Quote:
> Check the combo box's Style property. It has to be set
> to 1 for this event to fire. Don't ask me why.

It makes sense. This is the only style where the list is always displayed,
so it's the only style where you can actually double-click on a list item.


Sun, 03 Aug 2003 02:14:40 GMT  
 Combobox DoubleClick event NEVER FIRES?!?!?
I haven't been able to come up with a good excuse to use a style 1 combo
yet... Why not use a listbox instead?


Quote:



> > Check the combo box's Style property. It has to be set
> > to 1 for this event to fire. Don't ask me why.

> It makes sense. This is the only style where the list is always displayed,
> so it's the only style where you can actually double-click on a list item.



Sun, 03 Aug 2003 02:36:11 GMT  
 Combobox DoubleClick event NEVER FIRES?!?!?


Quote:
> I haven't been able to come up with a good excuse to use a style 1 combo
> yet... Why not use a listbox instead?

There's one decent time: think of the common font dialog. Size is presented
as a type 1 combo. You can pick from a (limited) set of predefined sizes or
you can type your own. It just comes down to aesthetics as to whether you
would want the list to be visible all the time or a dropdown.


Sun, 03 Aug 2003 12:34:53 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. ComboBox.DataSource fires SelectedValueChanged event

2. combobox selection event fires twice?

3. VB5 : Key_Up Event does not fire when {TAB} is pressed in MSForms.Combobox

4. ComboBox Change Event Does not fire when user changes selection

5. VB6: ComboBox Change Event Not Firing

6. Control Event Problem (Post Event after an event is fired)

7. click event not firing if lost_focus is firing first

8. Does the shape object has a doubleClick event?

9. DoubleClick-event

10. Doubleclick event

11. Capturing a Shape's DoubleClick Event from VB

12. Catching the DoubleClick Event

 

 
Powered by phpBB® Forum Software