Browser Control StatusBar/StatusText properties don't work

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

    #1

    Browser Control StatusBar/StatusText properties don't work

    Using a standard status bar control and the VB browser control I want to be
    able to display the URL of a link that is hovered over in the browser
    control. Documentation indicates that the browser control was designed to
    let you set the StatusBar property to true and then use the StatusText
    property in the StatusTextChang e event to get the URL and display it. But
    the StatusText property isn't implemented so this does not work. Is there
    no way to accomplish this using the Browser control?


  • Randy Birch

    #2
    Re: Browser Control StatusBar/StatusText properties don't work

    Seems to work here ...

    Private Sub WebBrowser1_Sta tusTextChange(B yVal Text As String)

    StatusBar1.Pane ls(1).Text = Text

    End Sub



    --

    Randy Birch
    MVP Visual Basic

    Please respond only to the newsgroups so all can benefit.


    "Dan" <Dan@NoSpam.com > wrote in message
    news:TpOdnddER4 ao4jmiRVn-vg@comcast.com. ..
    : Using a standard status bar control and the VB browser control I want to
    be
    : able to display the URL of a link that is hovered over in the browser
    : control. Documentation indicates that the browser control was designed to
    : let you set the StatusBar property to true and then use the StatusText
    : property in the StatusTextChang e event to get the URL and display it. But
    : the StatusText property isn't implemented so this does not work. Is there
    : no way to accomplish this using the Browser control?
    :
    :


    Comment

    • Dan

      #3
      Re: Browser Control StatusBar/StatusText properties don't work

      I can't believe I missed that. I was using

      StatusBar1.Pane ls(1).Text = WebBrowser1.Sta tusBar.StatusTe xt

      which generates runtime error "Method 'StatusText' of object 'IWebBrowser2'
      failed"

      Thanks!

      "Randy Birch" <rgb_removethis @mvps.org> wrote in message
      news:Zofpb.3098 $QV1.1892@news0 2.bloor.is.net. cable.rogers.co m...[color=blue]
      > Seems to work here ...
      >
      > Private Sub WebBrowser1_Sta tusTextChange(B yVal Text As String)
      >
      > StatusBar1.Pane ls(1).Text = Text
      >
      > End Sub
      >
      >
      >
      > --
      >
      > Randy Birch
      > MVP Visual Basic
      > http://www.mvps.org/vbnet/
      > Please respond only to the newsgroups so all can benefit.
      >
      >
      > "Dan" <Dan@NoSpam.com > wrote in message
      > news:TpOdnddER4 ao4jmiRVn-vg@comcast.com. ..
      > : Using a standard status bar control and the VB browser control I want to
      > be
      > : able to display the URL of a link that is hovered over in the browser
      > : control. Documentation indicates that the browser control was designed[/color]
      to[color=blue]
      > : let you set the StatusBar property to true and then use the StatusText
      > : property in the StatusTextChang e event to get the URL and display it.[/color]
      But[color=blue]
      > : the StatusText property isn't implemented so this does not work. Is[/color]
      there[color=blue]
      > : no way to accomplish this using the Browser control?
      > :
      > :
      >
      >[/color]


      Comment

      • XXXXXXXXXXXXXXXXXXXXXXXXXNo longer subscribing sea

        #4
        Re: Browser Control StatusBar/StatusText properties don't work

        well sedth hat hd to will no man belong in this mwessage!


        Dan <Dan@NoSpam.com > wrote in message
        news:TpOdnddER4 ao4jmiRVn-vg@comcast.com. ..[color=blue]
        > Using a standard status bar control and the VB browser control I want to[/color]
        be[color=blue]
        > able to display the URL of a link that is hovered over in the browser
        > control. Documentation indicates that the browser control was designed to
        > let you set the StatusBar property to true and then use the StatusText
        > property in the StatusTextChang e event to get the URL and display it. But
        > the StatusText property isn't implemented so this does not work. Is there
        > no way to accomplish this using the Browser control?
        >
        >[/color]


        Comment

        Working...