Results 1 to 2 of 2

Thread: WebBrowser opening in new window

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    mauritius
    Posts
    75
    I've posted the same question in the general section
    but seems that no one answer me. Hope that here
    i get an answer.

    So i want to know how to open a link in my program window
    rather than the IE window when right clicking on a hyperlink
    and choosing the "open in new windw"

    And how to display the URL of a hyperlink in a label when
    the mouse is over it ?

  2. #2
    Guest
    Here you go:


    Code:
    Private Sub webbrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
    
        Dim FrmNew As New Form1
        Set ppDisp = FrmNew.webbrowser1.Object
        Cancel = False
        DoEvents
        FrmNew.Show
    
    End Sub
    And for your second question...


    Code:
    Private Sub webbrowser1_StatusTextChange(ByVal Text As String)
        Label1.Caption = Text
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width