Contents - Index - Top


OnDblClick

Interface AntView 

 

Type: Event

Parameters: none

 

 

This event is never raised. 

The WebView2 control does not expose an OnDblClick event. The reason the event is listed, is because our framework exposed a number of default events. 

Even if this event would have been supported by the WebView2 control, you would still have had a problem to identify what html element was double clicked on, as there is no direct DOM access like there was in the old mshtml control.

 

This event is hidden in AntView version 2.0 as the control should not expose what isn't there.

We recommend to remove any instances where you have tried to use this event before upgrading.

 

If you want to catch an onDblClick event then that is best done with javascript within the html document.

With javascript you can directly access and manipulate all DOM elements.

If you don't control the contents of the html document itself then you can inject your own javascript in any loaded document by using one of the existing methods for that, such as RunAnonymousFunction or ExecuteScript.

 


AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/25/2024