Results 1 to 6 of 6

Thread: Making a Browser

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Angry

    I'm trying to make a web browser and I need to know how to do it. Which component do I use? Do I use winsock or Inet? I don't want to make a browser using the MS internet Explorer component (Microsoft might seu me!!!) ! If you know any component that is a like the ms internet explorer component can u please post about it!
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  2. #2
    Guest
    You won't get sued, you have all rights to use their control and they won't sue you for it. IE is free, and so is the control they provide. If they didn't want you to use their control, they'd probably make it so you couldn't. So feel free to use it. Look in your Object Browser for more on the Webbrowser Control.

  3. #3
    Guest
    Winsock and Inet are both connection related. The WebBroswer control is the one you want for browsing.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Angry

    But this is some other problems. If the user right clicks on the browser, he has a different choices! One of the choices is open in new window which opens the address in Internet Explorer's window! <-- Problem, I want it to open in my browser in a new window!
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  5. #5
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Before IE opens the second window the NewWindow2 event is fired. If you don't want it to open the new window just set Cancel = True there.
    Code:
    Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
        Cancel = True
    End Sub

  6. #6
    Guest
    Here is how to open the new url with your program instead of IE:

    Code:
    Private Sub webbrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
    Dim Frm As New Form1
    Set ppDisp = Frm.webbrowser1.Object
    Cancel = False
    Frm.Show
    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