Mouse Down/Double Click Event

Montez659

Well-known Member
Joined
May 4, 2005
Messages
918
I am not really sure where I need to explore, but I have been checking into the Mouse Down Event to open a different form based on whether ctrl is pressed while clicking or not. This part seems straight forward, but I left one detail out (I guess if you read the title, you know what it is). I want to have a double-click event and a ctrl double-click event, as opposed to a single click (this is a listbox so a single click could cause a lot of extra forms to open that need not).

Your wisdom and direction are appreciated!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Or, actually, what I just figured out that I can do is have the regular double-click event, but then a separate Mouse Down Event for ctrl-click. The ctrl-click does't need to be a double-click, so I think that this will work.
 
Upvote 0
But, I did run into a small problem. I am trying to use the Mouse Down event on a listbox where I have info stored. I would need to pull the id that I will use to retrieve a record from column 0, but it seems that the Mouse Down occurs before the Click finishes. Therefore, the selected row is never physically selected and I run into an error as I cycle through the list to find the selected item.

Any suggestions to remedy this?
 
Upvote 0
Open the Control Panel
14.monster.gif
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top