-
Oct 8th, 2005, 08:13 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] web browser links
i have searched this site for help but couldnt find what i was looking for. when a user clicks on a link on a webpage using the web browser control a new link will open in IE how can i open the new link in my browser
-
Oct 8th, 2005, 08:32 AM
#2
Frenzied Member
Re: web browser links
Originally Posted by joel2892
i have searched this site for help but couldnt find what i was looking for. when a user clicks on a link on a webpage using the web browser control a new link will open in IE how can i open the new link in my browser
easy as pie 4 lines of code no components or api's just
VB Code:
private sub label1_click()
dim ie
Set ie = CreateObject("INTERNETEXPLORER.application")
ie.navigate label1.caption
ie.Visible = True
end sub
now just make the label for example blue and have it say "www.google.com" and it will goto google when clicked
-
Oct 8th, 2005, 09:31 AM
#3
Lively Member
Re: web browser links
They mean, when you click on a link on a WEBSITE it opens internet explorer, they want it to open in their BROWSER
-
Oct 8th, 2005, 10:29 AM
#4
Thread Starter
Hyperactive Member
-
Oct 8th, 2005, 10:58 AM
#5
Fanatic Member
Re: web browser links
Try this:
VB Code:
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Dim frmBrowser As Form1
Set frmBrowser = New Form1
Set ppDisp = frmBrowser.WebBrowser1.Object
frmBrowser.Show
Set frmBrowser = Nothing
End Sub
Author for Visual Basic Web Magazine
-
Oct 8th, 2005, 11:09 AM
#6
Thread Starter
Hyperactive Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|