Apply Your Knowledge

Exercises

9.1. Embedding a Web Browser Control

One ActiveX control that you might find useful on Windows forms is the WebBrowser control, which uses the Internet Explorer rendering engine to display Web pages. In this exercise, you'll see how you can embed this control in a Windows form.

Estimated time: 15 minutes

1.
Open a Visual C# .NET Windows application in the Visual Studio .NET IDE.
2.
Right-click on the toolbox and select Customize Toolbox.
3.
Select the COM Components tab in the Customize Toolbox dialog box.
4.
Scroll down the list of components, which should include all the ActiveX controls that are registered on your computer, until you find the Microsoft Web Browser control. Click the check box for the control and ...

Get MCAD/MCSD.NET Training Guide (Exam 70-316): Developing and Implementing Windows®-Based Applications with Microsoft® Visual C#™ .NET and Microsoft® Visual Studio® .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.