Skip to content

ExecuteOnPressInterval Property

Description

Specifies the number of milliseconds between calls to the Execute event while the mouse is pressed on the control.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property ExecuteOnPressInterval() As Long

Remarks

By default, when a command bar control is clicked, the Execute event is only fired once, even if the mouse button is held down. ExecuteOnPressInterval is set to 0 by default, which indicates the control will only fire the Execute event once when clicked. If you set this to any positive number (representing milliseconds), then the Execute event will continue to fire while the mouse is pressed down on the control.

To disable this feature, simply set it to 0 milliseconds.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.