Browser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Maldonado

    #1

    Browser

    Hy everybody

    How can I instantiate a object that represents a web browser. What is the
    class that do it??


    Thank's
    --
    André Almeida Maldonado - Brazilian - Com orgulho!
  • Cor Ligthert

    #2
    Re: Browser

    Maldonado

    A little example,

    Open a new windows application project

    In the toolbox rightclick and select add/Remove items

    In the customize toolbox select Com and in that Microsoft Webbrowser

    When that is in the toolbox drag it to your form
    Drag also a button to your form.

    Then this code and you have a mini Webbrowser.

    Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
    System.EventArg s) Handles Button1.Click
    Me.AxWebBrowser 1.Navigate2("ww w.google.com")
    End Sub

    When you reference it directly you do not get the webbrowser however only
    SHdocvw which is Internet Explorer and not the webbrowser.

    I hope this helps a little bit?

    Cor

    "Maldonado" <Maldonado@disc ussions.microso ft.com>
    [color=blue]
    > Hy everybody
    >
    > How can I instantiate a object that represents a web browser. What is the
    > class that do it??
    >
    >[/color]


    Comment

    • Cor Ligthert

      #3
      Re: Browser

      Maldonado

      A little example,

      Open a new windows application project

      In the toolbox rightclick and select add/Remove items

      In the customize toolbox select Com and in that Microsoft Webbrowser

      When that is in the toolbox drag it to your form
      Drag also a button to your form.

      Then this code and you have a mini Webbrowser.

      Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
      System.EventArg s) Handles Button1.Click
      Me.AxWebBrowser 1.Navigate2("ww w.google.com")
      End Sub

      When you reference it directly you do not get the webbrowser however only
      SHdocvw which is Internet Explorer and not the webbrowser.

      I hope this helps a little bit?

      Cor

      "Maldonado" <Maldonado@disc ussions.microso ft.com>
      [color=blue]
      > Hy everybody
      >
      > How can I instantiate a object that represents a web browser. What is the
      > class that do it??
      >
      >[/color]


      Comment

      Working...