0

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

4

1 回答 1

0

您可以创建自己的自定义控件,该控件将从 OCX 继承。然后你可以覆盖事件,例如

Protected Overrides Sub ClickSel(ByVal e As _DGSViewerXEvents_ClickSelEvent)
    'Do nothing here.
End Sub
于 2013-07-17T22:04:43.080 回答