-
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!
-
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.
-
Winsock and Inet are both connection related. The WebBroswer control is the one you want for browsing.
-
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!
-
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
-
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