I've created a user control that is causing me some problems.
If you start a new VB project and put a standard picture box, image box, text box, etc.... on the form, and then put debug.print statements in the click and DblClick event handlers, it appears as though the click event always fires first, followed closely by the double click event.
Ex:
The problem I have with my User Control is that the double click event fires before the click event fires. I have a fair amount of code getting executed in both events, but I don't think it should matter how much code there is, the order of events (in my opinion) should be set in stone.
Is there some way to modify the behavior?
Is there a fixed order in which the click & double click events SHOULD fire? Should the click event always occur before the double click event?
-George
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
If you start a new VB project and put a standard picture box, image box, text box, etc.... on the form, and then put debug.print statements in the click and DblClick event handlers, it appears as though the click event always fires first, followed closely by the double click event.
Ex:
Code:
Option Explicit
Private Sub Picture1_Click()
Debug.Print "click: " & Timer
End Sub
Private Sub Picture1_DblClick()
Debug.Print "double click: " & Timer
End Sub
The problem I have with my User Control is that the double click event fires before the click event fires. I have a fair amount of code getting executed in both events, but I don't think it should matter how much code there is, the order of events (in my opinion) should be set in stone.
Is there some way to modify the behavior?
Is there a fixed order in which the click & double click events SHOULD fire? Should the click event always occur before the double click event?
-George
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom