Hi There,
I'm creating an active X ocx at the moment for my other VB app.
what i need to do is create an DblClick event for when the user double-clicks on my active X control, how do i do this?
Thanks.
Smithy.
Printable View
Hi There,
I'm creating an active X ocx at the moment for my other VB app.
what i need to do is create an DblClick event for when the user double-clicks on my active X control, how do i do this?
Thanks.
Smithy.
VB Code:
Option Explicit Public Event OCXDoubleClick() Private Sub UserControl_DblClick() RaiseEvent OCXDoubleClick End Sub
Thanks peet.
I only got one small problem though, my usercontrol has an additional control attached to it and this particular control doesn't have a double-click event. The problem is that this control covers most of the usercontrol so it makes it extremely hard for the double-click even to work.
Is there an additional way to get it the double-click to work no matter if they click on the user control or the other control on the user control?
Thanks
Smithy.
hmm.. if the control on the usercontrol is not u'r own, and does not have a double click event, u have a problem.
does it have other events like mouseup or mousedown events?
The closest thing it has is gotfocus and lostfocus. It also has drapdrop and dragover
Thanks
hmm then I don't see how u can catch the doubleclick event... sorry
try posting a new thread in the API, ask if anyone now how to detect doubleclick event on an OCX with no doubleclick event.. they might know.