• Log in or sign up for an account here: https://www.sythe.org/login

Opening links in a webbrowser

  • Thread starter Thread starter xevenx
  • Start date Start date
X

xevenx

Guest
Opening links in a webbrowser
I tried to make a webbrowser once, failed, and I am thinkin of retry.
But: before I even start off I want to know how to get it to open links in a new window.
It allways opening links in IE instead of MY program:S

What am I suppost to do?
 
Opening links in a webbrowser
Here

Assumeing ur browser is Webbrowser1 and the form is Form1.

Code:
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Dim frm As Form1
Set frm = New Form1
Set ppDisp = frm.WebBrowser1.Object
frm.Show
End Sub
 
Opening links in a webbrowser
Didn't work:(


Code:
Private Sub WebBrowser1_NewWindow2(ByVal ppDisp As Object, ByVal Cancel As Boolean)

It says: "statement is not valid in namespace"

Anyone?
 
Opening links in a webbrowser
Well, My bad. I didn't release that Vb 08 is similar to .net
I am using VB 08 (same as .net I guess?)
 
Opening links in a webbrowser
VB08 == .Net

(Visual Basic '08 is Visual Basic .Net)
 
Opening links in a webbrowser
okay:P Does anyone know what code I need to fix my problem?
 
Runescape Gamblingrunescape gambling
Back
Top