문제

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

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top