Previous topicNext topic
Help >
How to use the control

Visual Basic 6.0 example of using OrdoWebView2 control

  1. Install OrdoWebView2 ActiveX Control
  2. Create a New Project as Standard EXE
  3. Load a New Component : Ctrl+T
    Choose OrdoConcept WebView2Edge Control

               
  4. Select the OrdoWebview Control in the toolbox and draw it on the Form :

              
  5. Open the Code window (F7), and type
              

    Private Sub Form_Load()
        With OrdoWebView1
            .Anchor = True 'Anchor the control on the parent window
            .HomeURL = "https://www.google.com/"  ' If the HomeURL property is filled in before initialization, the Init method will display this URL 
            .SearchEngine = Google
            .Init
    ' Initializes the control. This function MUST be called before any Internet browsing

        End With
    End Sub

                   
  6. Run the project (F5)



    Here is a mini browser !