Question

I using an OCX for an ipcam in my program. when you double click on the control it goes into full screen mode. I want to prevent this. I have this event in my form. I there anything Ican do at this point to prevent the click event from going to the ocx?

Private Sub AxGSViewerX1_ClickSel(sender As Object, e As AxGSViewerXLib._DGSViewerXEvents_ClickSelEvent) Handles AxGSViewerX1.ClickSel
    Console.WriteLine("click")

End Sub

thanks

Était-ce utile?

La solution

You can create your own custom control which would inherit from the OCX. Then you can override the event e.g.

Protected Overrides Sub ClickSel(ByVal e As _DGSViewerXEvents_ClickSelEvent)
    'Do nothing here.
End Sub
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top