Contents - Index - Top


Navigate

Interface AntView 

 

Type: Method

Parameters: String URL

Returns: nothing

 

 

Navigates to the URL passed and loads the document in the WebView2 control.

The navigation process will raise a number of events, starting with the OnNavigationStarting event.

You can see the results of the request in the OnNavigationCompleted event.

 

There are a number of other events that will follow as the navigation process proceeds.

This is displayed in the following navigation events

 

Example in Visual Basic:

 

Private Sub GoButton_Click()

  Dim HtmlFile As String

  Dim Path As String

  

  ' Load the html from file loginDemo.html

  Path = strGetVisualBasicDemoPath

  HtmlFile = Path & "\html\loginDemo.html"

  EdgeWebBrowser.Navigate HtmlFile

  Debug.Print EdgeWebBrowser.LastErrorCode

End Sub

 


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