Contents - Index - Top


OnCreate

Interface AntView 

 

Type: Event

Parameters: none

 

 

This event is raised during the instantiation of the AntView control. 

It is send before the WebView2 control itself is instantiated.

 

The order of events during creation of the WebView2 control is:

- OnCreate

- OnCreateControl

- OnActivate

- OnCreateWebviewCompleted

 

 

Please note that in DataFlex due to naming conventions this is the OnComCreate event, confusingly DataFlex itself also has a OnCreate event, but this is send by the DataFlex runtime itself after this event.

 

You will not see this event trigger on VB6/VBA. The reason for that is that the creation of a form works different there. The OnCreate event is triggered before the VBA "Form Open" event. The Form simply isn't there yet to process the OnCreate event.

Instead of this event you can use the OnCreateControl event which is the first event that triggers after VBA "Form Open" and before VBA "Form Load".

 


AntView - The MS Edge WebView2 ActiveX control Date last changed: 2026/07/13