DoubleClick Event

Applies to:  Subclasser object, PowerForm control
See also:  Click Event, Event Index

Occurs when a mouse button is double clicked in the subclassed window.

Syntax:

Private Sub object_DoubleClick(ByVal Button As MouseButtonConstants, ByVal Shift As Boolean, ByVal Control As Boolean, ByVal x As Long, ByVal y As Long, Cancel As Boolean)

The DoubleClick event syntax has these parts:

Part Description
object The name of an object in the Applies to list.  If object is a SubClasser object, then the object must be declared using WithEvents.
Button A value indicating which button was clicked.  Can be any one of the following values:
  • vbLeftButton
  • vbMiddleButton
  • vbRightButton
Shift A boolean value indicating the state of the Shift key.  A value of True indicates that one or both Shift keys are down.
Control A boolean value indicating the state of the Control key.  A value of True indicates that one or both Control keys are down
x The x coordinate (in pixels) of the mouse pointer at the time it was clicked, relative to the top-left corner of the window or control.
y The y coordinate (in pixels) of the mouse pointer at the time it was clicked, relative to the top-left corner of the window or control.

 

Home

Copyright and Disclaimer