-
WebBrowser NewWindow
I have a WebBrowser on my form for my application that I am building.
Problem:
When the user is navigating on the WebBrowser and clicks a link to open a new page, I want the Browser to open the Link in the same Browser instead of opening IE.exe.
Any help is appreciated,
ky
-
hi
add the attribute with value such as target="_self" in the hyperlink tag then the new page will be open in the same window
-
See if the the below Microsoft KB article helps. I don't believe this is the default behavior unless the link is forcing a new window.
How To Use the WebBrowser Control NewWindow2 Event
Paul
~~~~
Microsoft MVP (Visual Basic)
-
Thank you Paul,
Yes the link was forcing a new window, but as I saw in the Microsoft Code that it creates a New FrmMain(my browser) and lets the new page be shown in a sub FrmMain instead of a new window by Internet Explorer.
Thanks again
-
OK, now I'm confused. Do you want the link to be displayed in the existing WebBrowser control or in IE? So far I've been unable to reproduce the behavior where it would launch in another browser window (w/o specifying that it should do so using HTML code in the actual link).
Paul
~~~~
Microsoft MVP (Visual Basic)
-
Yes I wanted the link that was clicked to be displayed in the existing browser, but the code from Microsoft works fine and creates a New frmMain with the link opened in the New frmMain.
-
Let me tell you again how I understand your question is you created your own browser.Then you browse the page from the your browser.. If you click a link of the page that is displayed in your browser to open new browser [ in IE Shift+Click], you want your browser to open and display the page that you want. [ You don't want IE to open instead of your own browser.. ]
Well, If my understanding is right, I like to suggest you one thing.. You should create one installer for your own browser.. Then, you shoud add one option to set default broswer of Windows.. After installation, you set your browser as default browser and then, whenever you open new windows, your browser will be opened instead of IE.. Other thing is that you don't need to find other resources and all you need to do is that create normally browser and set it as default.. :-)
Let me know if my understanding is wrong.....
-
The browser I created isn't a browser I want to set as Default, I just don't want it opening in there DEFAULT(usually IE) browser. The browser in my application isn't the "main" part of the application its just there to find images to be edited and ehanced by my image editor.
Similar Threads
-
By Keithuk in forum VB Classic
Replies: 2
Last Post: 10-29-2005, 08:57 AM
-
By FLD in forum Enterprise
Replies: 2
Last Post: 11-20-2000, 11:34 AM
-
Replies: 0
Last Post: 10-20-2000, 02:41 PM
-
Replies: 0
Last Post: 10-20-2000, 02:41 PM
-
By Jason Savard in forum VB Classic
Replies: 0
Last Post: 08-03-2000, 08:06 PM
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks