Windows Develop Bookmark and Share   
 index > Windows Forms General > Browser Control Questions.
 

Browser Control Questions.

Hi again everyone! I am working on a project for my school and it is a web browser, I have figured out the address bar, go button, refresh, back and forward but for the life of me can't figure this out.

When the end-user clicks a link that opens in a _new window it opens an internet explorer window. Is there anyway to catch this and open up let's say another form with a browser control on it?

For example Form1 (Main browser) user clicks link that opens a new window Form1 spawns Form2 and Form2 loads the webpage vs internet explorer.

Is this possible?

CODUDE84  Sunday, November 26, 2006 1:47 AM
Check the NewWindow event for the WebBrowser control. There isn't much you can do, other than setting the e.Cancel property to True. Which would be an effective popup window suppressor!

nobugz  Sunday, November 26, 2006 12:38 PM

Anyway I could just define what kind of window it opens in? I don't mind if it uses IE but is there anyway to say:

Hey IE, Go ahead and open this link just dont open it in a window with an address bar, file, options or anything like that. Just a plain window with a red X on the corner?

The goal of my project is to give my school an effective tool for teaching and not haft to worry about whats being done to the settings or who is bit torrenting I admit I have bent the rules a few time but hey I am a senior so I wont need to use their net for much longer hehe.

If anyone has any idea please let me know.

-JJ

CODUDE84  Sunday, November 26, 2006 12:57 PM
Google for IDocHostUIHandler.
nobugz  Sunday, November 26, 2006 1:41 PM

You can use google to search for other answers

Custom Search

More Threads

• Calendar control help
• Deployment question (what to upload)
• OpenFileDialog and Static Variables
• How can I format a richTextBox?
• Show a txt file in a Textbox
• ShowDialog and owner reference
• Border Discoloration When Using Transparent PNGs.
• VB.NET Menustrip control appears to filter out the Tab Key of a Windows form
• prevent clicking on the datagridview backgound
• making a very small trackbar Question