Welcome to MSDN Blogs Sign in | Join | Help

Adding the Browser Control with VS 2003

Question: I am in the middle of writing my first Windows Form application using Visual Studio .NET 2003. So far the application is going well. I am struggling with a few of the design requirements. I have one that I am hoping you can help me with. Part of the application requires the display of HTML data. I can’t seem to find the Web Browser control? I would have thought that it would appear right on the toolbox.

Answer: Actually, this is because the Web Browser is still a COM component. In order to access the “Web Browser” control we need to add a COM callable wrapper. Here are the basic steps for creating the wrapper that is then added to the Visual Studio 2003 toolbox.

  1. Right click on the toolbox in Visual Studio 2003 and select Add/Remove Item.

  1. Within the Toolbox select the COM components tab and select the Microsoft Web Browser

  1. This will add the control to the palette

  1. Once added to the project you will notice that there are some new references added to the form.

Published Wednesday, September 29, 2004 8:39 PM by trobbins

Comments

# re: Adding the Browser Control with VS 2003

Wednesday, September 29, 2004 9:01 PM by Autoversicherung online
Tried it, but always crashes :(

# re: Adding the Browser Control with VS 2003

Wednesday, September 29, 2004 9:43 PM by Thom Robbins
Interesting - I haven't had it crash. What is the error? Maybe someone else has seen that and can help.

# re: Adding the Browser Control with VS 2003

Wednesday, September 29, 2004 10:31 PM by Patrick Steele
Just tried it too and it worked fine (VS 2003, C# Windows App)

# Adding the Browser Control with VS 2003

Wednesday, September 29, 2004 11:01 PM by Lockergnome's Web Developers
Designing Windows Form applications can be tedious work. Today, one reader writes into Thom Robbins asking where they might find the Web Browser control. Robbins has the answer for them complete with pictures and concise instruction....

# re: Adding the Browser Control with VS 2003

Thursday, September 30, 2004 12:15 AM by b.gr
As an educated guess the first comment is a rather good context based comment spam - the name translates to car insurance and the link seems to point to be a place to get one online :)

# re: Adding the Browser Control with VS 2003

Monday, October 04, 2004 9:38 PM by Dave Burke
Excellent tip, Thom. Thanks!

# Thom Robbins writes a Five-Star blog

Monday, October 04, 2004 10:45 PM by Dave Burke's Blog
New Comments to this post are disabled
 
Page view tracker