点“工具”菜单,然后点击“自定义工具葙”弹出对话框,找到IE控件,单击引用,然后回到主页面,工具葙中已经加入了IE浏览器
一个例子:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace oa
{
/// <summary>
/// viewNotice 的摘要说明。
/// </summary>
public class viewNotice : System.Windows.Forms.Form
{
private AxSHDocVw.AxWebBrowser axWebBrowser1;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public viewNotice()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();