| Using an AxWebBrowser component |
This code snippet from the above project show two essentials for the Blog project--1) substituting <br> for line ends, and 2) using an encoding when opening the StreamWriter object.
Each time you start a new project, you may need to add references in the VS.NET project for AxShDocVw, SHDocVw and mshtml.
Microsoft.mshtml
mshtml is a .NET assembly listed under the .NET tab of the
Add Reference dialog box. It's listed under Microsoft.mshtml. Choosing this item
adds the Microsoft.mshtml entry to your project's References folder.
SHDocVw
This is a component listed under the COM tab of the Add Reference dialog box. Look for the component name Microsoft Internet Controls;
choosing it adds the SHDocVw entry to your project's References folder.
AxShDocVw
This is a COM component, but you need to add it in a round-about way:
1. Open your Windows.Form in design view. 2. Open the Toolbox explorer and click the Components pane. 3. Right-click in the Components pane and choose Add/Remove items... 4. Under the COM Components tab look for the item Microsoft Web Browser. 5. Check the box next to this item and click OK 6. A new entry is added to the Toolbox Components pane named Microsoft Web Browser.You can now use this component on your Form by simply dragging it onto the form under design view. This adds the AxSHDocVw entry to the project's References folder; it does not appear there until you start using the component.
--This information courtesy of Steven M. Cohn's weblog.
Visitors: