Welcome to Dream.In.Code
Getting VB.NET Help is Easy!

Join 132,673 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,182 people online right now. Registration is fast and FREE... Join Now!




Visual Basic Web Browser - Stop IE from Opening?!

 
Reply to this topicStart new topic

Visual Basic Web Browser - Stop IE from Opening?!, Visual Basic Express Edition

madjam002
post 11 Sep, 2008 - 11:05 AM
Post #1


New D.I.C Head

*
Joined: 17 Feb, 2008
Posts: 8

Hello all,
I am working on a tabbed web browser and it is going great! biggrin.gif
Only one problem! When someone presses on a link that has a target of _blank or a new window, it opens in IE!

I have tried things like:
CODE
Private Sub newbrowse_newwindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs)
        e.Cancel = True
End Sub

but that only cancels IE from opening. What I want is it to open in a new tab. I have set it so that
CODE
NewTab()
opens the new tab to the users homepage.

Basically, I need to find out how to get the URL of what the browser is trying to open.
Would anyone be able to help??

Many thanks biggrin.gif

Jamie

This post has been edited by madjam002: 11 Sep, 2008 - 11:30 AM
User is offlineProfile CardPM

Go to the top of the page

thava
post 11 Sep, 2008 - 11:06 PM
Post #2


D.I.C Regular

Group Icon
Joined: 17 Apr, 2007
Posts: 425



Thanked 17 times

Dream Kudos: 50
My Contributions


i think it's in .net
User is offlineProfile CardPM

Go to the top of the page

madjam002
post 12 Sep, 2008 - 08:17 AM
Post #3


New D.I.C Head

*
Joined: 17 Feb, 2008
Posts: 8

Sorry, I don't understand.
Do you mean Visual Basic.net?

I am using Visual Basic Express Edition.
User is offlineProfile CardPM

Go to the top of the page

madjam002
post 19 Sep, 2008 - 12:13 PM
Post #4


New D.I.C Head

*
Joined: 17 Feb, 2008
Posts: 8

Hi there,
Is there anyone who could help?

Many thanks biggrin.gif
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 19 Sep, 2008 - 01:56 PM
Post #5


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,933



Thanked 118 times

Dream Kudos: 8525

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


Visual Basic 2005 or 2008 Express Edition is VB.NET, moved to VB.NET forum smile.gif
User is offlineProfile CardPM

Go to the top of the page

indrora
post 19 Sep, 2008 - 06:41 PM
Post #6


D.I.C Head

Group Icon
Joined: 25 Jul, 2008
Posts: 52



Dream Kudos: 25
My Contributions


... have you looked for a tutorial on "build a tabbed web browser with Vb.NET"?
User is offlineProfile CardPM

Go to the top of the page

gbertoli3
post 19 Sep, 2008 - 10:25 PM
Post #7


DIC at Heart + Code

Group Icon
Joined: 23 Jun, 2008
Posts: 1,026



Thanked 16 times

Dream Kudos: 950
My Contributions


You could try something similar to this
vb

NewTab()
newbrowse.Navigate("url goes here")


Hope this helps

This post has been edited by gbertoli3: 19 Sep, 2008 - 10:25 PM
User is offlineProfile CardPM

Go to the top of the page

madjam002
post 20 Sep, 2008 - 10:13 AM
Post #8


New D.I.C Head

*
Joined: 17 Feb, 2008
Posts: 8

Ok this is a quick reply.
Thanks gbertoli3 for your reply however I need to find out how to get the url that the person attempted to go to. That would then go in the Navigate() brackets.
QUOTE
... have you looked for a tutorial on "build a tabbed web browser with Vb.NET"?


I will have a look now thank-you for your help.
User is offlineProfile CardPM

Go to the top of the page

gbertoli3
post 20 Sep, 2008 - 10:18 AM
Post #9


DIC at Heart + Code

Group Icon
Joined: 23 Jun, 2008
Posts: 1,026



Thanked 16 times

Dream Kudos: 950
My Contributions


Not sure if this will work but try anyways
vb

NewTab()
newbrowse.Navigate(newbrowse.Url.ToString())


Hope this helps
User is offlineProfile CardPM

Go to the top of the page

madjam002
post 3 Oct, 2008 - 05:09 AM
Post #10


New D.I.C Head

*
Joined: 17 Feb, 2008
Posts: 8

QUOTE(gbertoli3 @ 20 Sep, 2008 - 11:18 AM) *

Not sure if this will work but try anyways
vb

NewTab()
newbrowse.Navigate(newbrowse.Url.ToString())


Hope this helps


Thanks but this opens the new tab and then opens IE with the same address.
I still did the e.cancel = true.

Should I do that?

Many thanks
User is offlineProfile CardPM

Go to the top of the page

madjam002
post 14 Oct, 2008 - 02:27 AM
Post #11


New D.I.C Head

*
Joined: 17 Feb, 2008
Posts: 8

Hello, can anyone help?

Many thanks biggrin.gif
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 06:19AM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month