12 Replies - 12079 Views - Last Post: 28 June 2010 - 11:14 AM Rate Topic: -----

#1 madjam002  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 17-February 08

Visual Basic Web Browser - Stop IE from Opening?!

Posted 11 September 2008 - 12:05 PM

Hello all,
I am working on a tabbed web browser and it is going great! :D
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:
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
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 :D

Jamie

This post has been edited by madjam002: 11 September 2008 - 12:30 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Visual Basic Web Browser - Stop IE from Opening?!

#2 thava  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 180
  • View blog
  • Posts: 1,606
  • Joined: 17-April 07

Re: Visual Basic Web Browser - Stop IE from Opening?!

Posted 12 September 2008 - 12:06 AM

i think it's in .net
Was This Post Helpful? 0
  • +
  • -

#3 madjam002  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 17-February 08

Re: Visual Basic Web Browser - Stop IE from Opening?!

Posted 12 September 2008 - 09:17 AM

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

I am using Visual Basic Express Edition.
Was This Post Helpful? 0
  • +
  • -

#4 madjam002  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 17-February 08

Re: Visual Basic Web Browser - Stop IE from Opening?!

Posted 19 September 2008 - 01:13 PM

Hi there,
Is there anyone who could help?

Many thanks :D
Was This Post Helpful? 0
  • +
  • -

#5 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1641
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Visual Basic Web Browser - Stop IE from Opening?!

Posted 19 September 2008 - 02:56 PM

Visual Basic 2005 or 2008 Express Edition is VB.NET, moved to VB.NET forum :)
Was This Post Helpful? 0
  • +
  • -

#6 indrora  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 100
  • Joined: 25-July 08

Re: Visual Basic Web Browser - Stop IE from Opening?!

Posted 19 September 2008 - 07:41 PM

... have you looked for a tutorial on "build a tabbed web browser with Vb.NET"?
Was This Post Helpful? -1
  • +
  • -

#7 gbertoli3  Icon User is offline

  • DIC at Heart + Code
  • member icon

Reputation: 40
  • View blog
  • Posts: 1,162
  • Joined: 23-June 08

Re: Visual Basic Web Browser - Stop IE from Opening?!

Posted 19 September 2008 - 11:25 PM

You could try something similar to this
NewTab()
newbrowse.Navigate("url goes here")



Hope this helps

This post has been edited by gbertoli3: 19 September 2008 - 11:25 PM

Was This Post Helpful? 0
  • +
  • -

#8 madjam002  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 17-February 08

Re: Visual Basic Web Browser - Stop IE from Opening?!

Posted 20 September 2008 - 11:13 AM

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.
Was This Post Helpful? 0
  • +
  • -

#9 gbertoli3  Icon User is offline

  • DIC at Heart + Code
  • member icon

Reputation: 40
  • View blog
  • Posts: 1,162
  • Joined: 23-June 08

Re: Visual Basic Web Browser - Stop IE from Opening?!

Posted 20 September 2008 - 11:18 AM

Not sure if this will work but try anyways
NewTab()
newbrowse.Navigate(newbrowse.Url.ToString())



Hope this helps
Was This Post Helpful? 0
  • +
  • -

#10 madjam002  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 17-February 08

Re: Visual Basic Web Browser - Stop IE from Opening?!

Posted 03 October 2008 - 06:09 AM

View Postgbertoli3, on 20 Sep, 2008 - 11:18 AM, said:

Not sure if this will work but try anyways
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
Was This Post Helpful? 0
  • +
  • -

#11 madjam002  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 17-February 08

Re: Visual Basic Web Browser - Stop IE from Opening?!

Posted 14 October 2008 - 03:27 AM

Hello, can anyone help?

Many thanks :D
Was This Post Helpful? 0
  • +
  • -

#12 Guest_Tom*


Reputation:

Re: Visual Basic Web Browser - Stop IE from Opening?!

Posted 28 June 2010 - 10:27 AM

I am about to soon look into this as well and wish to handle it one of two ways; Your way, if this is somehow related into keeping IE from opening in a new windows from an anchored page link (ie; target="_new") OR by making it the systems Default Browser.

Either way, I do know you are in for quite an expedition on the web for hunting the answer down. It can be different in that code sytnax changes from on VB version to another, espcially from VB6 to .Net (Although there IS a conversion that can be done in the VB.Net IDE) and searches through google and such gives various other languages as well as alternate methods. Adding VB.Net to the query may help, though a solution may be found in VB6 which can be converted. Good luck!

BTW, YOUR problem is when a HyperLink with the target opening a new window happens I take it. This is a problem many Web Browser coders have, especially for us noobs. I know, I have been looking into it here and there for a while now LOL!

I have a problem with myself; I can't learn fast enough. ;)
Was This Post Helpful? 0

#13 Jack Eagles1  Icon User is offline

  • Pugnacious Penguin (inspired by no2pencil)
  • member icon

Reputation: 183
  • View blog
  • Posts: 1,152
  • Joined: 10-December 08

Re: Visual Basic Web Browser - Stop IE from Opening?!

Posted 28 June 2010 - 11:14 AM

OMG!!! Why revive a topic this old! Too many guests are doing this and it ReAllY pisses me off!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1