Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Webbrowser change page error

Status
Not open for further replies.

Greyfleck

IS-IT--Management
Jun 2, 2008
61
GB
I am working on VS 2008 and have a simple form on which I have created a webbrowser. It happily shows the first page but, when trying to show a new page, it opens a new window, briefly shows the new page and then closes it again leaving me with just the original page display.
I am not attempting anything other than trying to replicate IE on the form.
Can anyone help me in displaying the new web page please.
Jon

I show the web page using
Code:
        Me.TextBox12.Text = "[URL unfurl="true"]www.msn.com"[/URL]
        WebBrowser1.Navigate(Me.TextBox12.Text)
 
There is nothing unusual in this code. Can you show the complete code?

Zameer Abdulla
 
Hi there, sadly that is all there is!
When I try to go to a new page, it opens in a NEW webpage (as if opening IE7) and then closes it before I can do anything! The webpage on the form does not change.
Textbox12 is there to accept a new url which I do not try to change.
 
Does the WebBrowser's NewWindow event fire?

HarleyQuinn
---------------------------------
Carter, hand me my thinking grenades!

You can hang outside in the sun all day tossing a ball around, or you can sit at your computer and do something that matters. - Eric Cartman

Get the most out of Tek-Tips, read FAQ222-2244: How to get the best answers before posting.

 
Not quite sure what you mean. There is no code for newwindow event so if it does fire I am not controlling it implicitly.
 
It appears it is when the website itself opens a 'temporary popup' webpage that the page opens and closes before I have a chance to see anything.
Normal paging seems OK,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top