WebBrowser 类

定义

使用户能够在你的窗体中导航网页。Enables the user to navigate Web pages inside your form.

public ref class WebBrowser : System::Windows::Forms::WebBrowserBase
[System.Runtime.InteropServices.ComVisible(true)]
[System.Windows.Forms.Docking(System.Windows.Forms.DockingBehavior.AutoDock)]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
public class WebBrowser : System.Windows.Forms.WebBrowserBase
type WebBrowser = class
    inherit WebBrowserBase
Public Class WebBrowser
Inherits WebBrowserBase
继承
属性

示例

下面的代码示例演示如何实现用于WebBrowser控件的地址栏。The following code example demonstrates how to implement an address bar for use with the WebBrowser control. 此示例要求您具有一个窗体, 该窗WebBrowser体包含webBrowser1一个名为的TextBoxAddress控件、一个Button名为ButtonGoTextBox控件和一个名为的控件。This example requires that you have a form that contains a WebBrowser control called webBrowser1, a TextBox control called TextBoxAddress, and a Button control called ButtonGo. 在文本框中键入 URL 并按 enter 或单击 "开始" 按钮时, WebBrowser控件将导航到指定的 url。When you type a URL into the text box and press ENTER or click the Go button, the WebBrowser control navigates to the URL specified. 通过单击超链接进行导航时, 文本框将自动更新以显示当前 URL。When you navigate by clicking a hyperlink, the text box automatically updates to display the current URL.

有关完整的代码示例, 请参阅如何:将 Web 浏览器功能添加到 Windows 窗体应用程序。For the complete code example, see How to: Add Web Browser Capabilities to a Windows Forms Application.

// Navigates to the URL in the address text box when 
// the ENTER key is pressed while the text box has focus.
void TextBoxAddress_KeyDown( Object^ /*sender*/, System::Windows::Forms::KeyEventArgs^ e )
{
   if ( e->KeyCode == System::Windows::Forms::Keys::Enter &&  !this->TextBoxAddress->Text->Equals( "" ) )
   {
      this->WebBrowser1->Navigate( this->TextBoxAddress->Text );
   }
}

// Navigates to the URL in the address text box when 
// the Go button is clicked.
void ButtonGo_Click( System::Object^ /*sender*/, System::EventArgs^ /*e*/ )
{
   if (  !this->TextBoxAddress->Text->Equals( "" ) )
   {
      this->WebBrowser1->Navigate( this->TextBoxAddress->Text );
   }
}

// Updates the URL in TextBoxAddress upon navigation.
void WebBrowser1_Navigated( Object^ /*sender*/, System::Windows::Forms::WebBrowserNavigatedEventArgs^ /*e*/ )
{
   this->TextBoxAddress->Text = this->WebBrowser1->Url->ToString();
}

// Navigates to the URL in the address box when 
// the ENTER key is pressed while the ToolStripTextBox has focus.
private void toolStripTextBox1_KeyDown(object sender, KeyEventArgs e)
{
    if (e.KeyCode == Keys.Enter)
    {
        Navigate(toolStripTextBox1.Text);
    }
}

// Navigates to the URL in the address box when 
// the Go button is clicked.
private void goButton_Click(object sender, EventArgs e)
{
    Navigate(toolStripTextBox1.Text);
}

// Navigates to the given URL if it is valid.
private void Navigate(String address)
{
    if (String.IsNullOrEmpty(address)) return;
    if (address.Equals("about:blank")) return;
    if (!address.StartsWith("http://") &&
        !address.StartsWith("https://"))
    {
        address = "http://" + address;
    }
    try
    {
        webBrowser1.Navigate(new Uri(address));
    }
    catch (System.UriFormatException)
    {
        return;
    }
}

// Updates the URL in TextBoxAddress upon navigation.
private void webBrowser1_Navigated(object sender,
    WebBrowserNavigatedEventArgs e)
{
    toolStripTextBox1.Text = webBrowser1.Url.ToString();
}

' Navigates to the URL in the address box when 
' the ENTER key is pressed while the ToolStripTextBox has focus.
Private Sub toolStripTextBox1_KeyDown( _
    ByVal sender As Object, ByVal e As KeyEventArgs) _
    Handles toolStripTextBox1.KeyDown

    If (e.KeyCode = Keys.Enter) Then
        Navigate(toolStripTextBox1.Text)
    End If

End Sub

' Navigates to the URL in the address box when 
' the Go button is clicked.
Private Sub goButton_Click( _
    ByVal sender As Object, ByVal e As EventArgs) _
    Handles goButton.Click

    Navigate(toolStripTextBox1.Text)

End Sub

' Navigates to the given URL if it is valid.
Private Sub Navigate(ByVal address As String)

    If String.IsNullOrEmpty(address) Then Return
    If address.Equals("about:blank") Then Return
    If Not address.StartsWith("http://") And _
        Not address.StartsWith("https://") Then
        address = "http://" & address
    End If

    Try
        webBrowser1.Navigate(New Uri(address))
    Catch ex As System.UriFormatException
        Return
    End Try

End Sub

' Updates the URL in TextBoxAddress upon navigation.
Private Sub webBrowser1_Navigated(ByVal sender As Object, _
    ByVal e As WebBrowserNavigatedEventArgs) _
    Handles webBrowser1.Navigated

    toolStripTextBox1.Text = webBrowser1.Url.ToString()

End Sub

注解

WebBrowser控件使你可以在 Windows 窗体的应用程序中承载网页和其他已启用浏览器的文档。The WebBrowser control lets you host Web pages and other browser-enabled documents in your Windows Forms applications. 例如, 您可以WebBrowser使用控件在您的应用程序中提供基于 HTML 的集成用户协助或 Web 浏览功能。You can use the WebBrowser control, for example, to provide integrated HTML-based user assistance or Web browsing capabilities in your application. 此外, 还可以使用WebBrowser控件将现有的基于 Web 的控件添加到 Windows 窗体客户端应用程序。Additionally, you can use the WebBrowser control to add your existing Web-based controls to your Windows Forms client applications.

重要

WebBrowser控件占用大量资源。The WebBrowser control is resource-intensive. 请确保在使用完Dispose()控件后调用方法, 以确保所有资源及时发布。Be sure to call the Dispose() method when you are finished using the control to ensure that all resources are released in a timely fashion. 必须在附加事件Dispose()的线程上调用方法, 该线程应始终为消息或用户界面 (UI) 线程。You must call the Dispose() method on the same thread that attached the events, which should always be the message or user-interface (UI) thread.

部分WebBrowser受信任的代码不能使用该控件。The WebBrowser control cannot be used by partially trusted code. 有关详细信息, 请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

WebBrowser控件具有几个与导航相关的属性、方法和事件。The WebBrowser control has several properties, methods, and events related to navigation. 使用以下成员可以将控件导航到特定 URL, 在导航历史记录列表中向后移动, 并加载当前用户的主页和搜索页面:The following members let you navigate the control to a specific URL, move backward and forward through the navigation history list, and load the home page and search page of the current user:

如果导航未成功, 则会显示一个指示问题的页面。If the navigation is unsuccessful, a page indicating the problem is displayed. 与其中任一成员的导航将导致NavigatingNavigatedDocumentCompleted事件在导航的不同阶段发生。Navigation with any of these members causes the Navigating, Navigated, and DocumentCompleted events to occur at different stages of navigation.

这些成员和其他成员 (如StopRefresh方法) 允许你在应用程序中实现类似于 Internet Explorer 中的用户界面控件。These and other members, such as the Stop and Refresh methods, let you implement user interface controls in your application similar to those in Internet Explorer. 即使您不希望在窗体上显示WebBrowser控件, 某些成员也很有用。Some members are useful even when you do not want to display the WebBrowser control on your form. 例如, 您可以使用Print方法来打印最新版本的网页, 而不向用户显示该页。For example, you can use the Print method to print the latest version of a Web page without displaying the page to the user.

使用WebBrowser控件还可以显示在应用程序中创建的内容, 也可以从数据库或资源文件中检索内容。The WebBrowser control also lets you display content that you create in your application or you retrieve from a database or resource file. DocumentText使用或DocumentStream属性以字符串或数据流的形式获取或设置当前文档的内容。Use the DocumentText or DocumentStream property to get or set the contents of the current document as a string or data stream.

您还可以通过Document属性操作网页的内容, 该属性包含一个HtmlDocument对象, 该对象提供对当前页的 HTML 文档对象模型 (DOM) 的托管访问。You can also manipulate the contents of a Web page through the Document property, which contains an HtmlDocument object that provides managed access to the HTML document object model (DOM) for the current page. 当与ObjectForScripting属性结合使用时, 此属性可用于在应用程序代码和网页中的动态 HTML (DHTML) 代码之间实现双向通信, 从而使你能够将基于 Web 的控件和 Windows 窗体控件合并到单个用户界面。This property is useful, when used in combination with the ObjectForScripting property, to implement two-way communication between your application code and dynamic HTML (DHTML) code in a Web page, letting you combine Web-based controls and Windows Forms controls in a single user interface. 您可以使用Document属性从您的应用程序调用脚本代码方法。You can use the Document property to call scripting code methods from your application. 脚本代码可通过window.external对象访问应用程序, 该对象是为主机访问提供的内置 DOM 对象, 并映射到为ObjectForScripting属性指定的对象。Your scripting code can access your application through the window.external object, which is a built-in DOM object provided for host access, and which maps to the object that you specify for the ObjectForScripting property.

控件是 ActiveX WebBrowser 控件的托管包装, 并使用用户计算机上安装的任何版本的控件。 WebBrowserThe WebBrowser control is a managed wrapper for the ActiveX WebBrowser control, and uses whichever version of the control is installed on the user's computer.

备注

此类在类级别提出安全要求。This class makes security demands at the class level. 当派生类或调用堆栈中的任何调用方不具有完全信任权限时,将引发。SecurityExceptionA SecurityException is thrown when a derived class or any caller in the call stack does not have full trust permission. 有关安全要求的详细信息, 请参阅链接要求继承要求For details about security demands, see Link Demands and Inheritance Demands.

备注

WebBrowser类只能在设置为单线程单元 (STA) 模式的线程中使用。The WebBrowser class can only be used in threads set to single thread apartment (STA) mode. 若要使用此类, 请确保Main使用STAThreadAttribute特性标记方法。To use this class, ensure that your Main method is marked with the STAThreadAttribute attribute.

构造函数

WebBrowser()

初始化 WebBrowser 类的新实例。Initializes a new instance of the WebBrowser class.

属性

AccessibilityObject

获取分配给该控件的 AccessibleObjectGets the AccessibleObject assigned to the control.

(继承自 Control)
AccessibleDefaultActionDescription

获取或设置控件的默认操作说明以供具有辅助功能的客户端应用程序使用。Gets or sets the default action description of the control for use by accessibility client applications.

(继承自 Control)
AccessibleDescription

获取或设置辅助功能客户端应用程序使用的控件说明。Gets or sets the description of the control used by accessibility client applications.

(继承自 Control)
AccessibleName

获取或设置辅助功能客户端应用程序所使用的控件名称。Gets or sets the name of the control used by accessibility client applications.

(继承自 Control)
AccessibleRole

获取或设置控件的辅助性角色。Gets or sets the accessible role of the control.

(继承自 Control)
ActiveXInstance

获取基础 ActiveX WebBrowser 控件。Gets the underlying ActiveX WebBrowser control.

(继承自 WebBrowserBase)
AllowDrop

此控件不支持此属性。This property is not supported by this control.

(继承自 WebBrowserBase)
AllowNavigation

获取或设置一个值,该值指示控件在加载其初始页之后是否可以导航到其他页。Gets or sets a value indicating whether the control can navigate to another page after its initial page has been loaded.

AllowWebBrowserDrop

获取或设置一个值,该值指示 WebBrowser 控件是否导航到拖放到它上面的文档。Gets or sets a value indicating whether the WebBrowser control navigates to documents that are dropped onto it.

Anchor

获取或设置控件绑定到的容器的边缘并确定控件如何随其父级一起调整大小。Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent.

(继承自 Control)
AutoScrollOffset

获取或设置一个值,该值指示在 ScrollControlIntoView(Control) 中将控件滚动到何处。Gets or sets where this control is scrolled to in ScrollControlIntoView(Control).

(继承自 Control)
AutoSize

此属性与此类无关。This property is not relevant for this class.

(继承自 Control)
BackColor

此属性对于此控件无意义。This property is not meaningful for this control.

(继承自 WebBrowserBase)
BackgroundImage

此控件不支持此属性。This property is not supported by this control.

(继承自 WebBrowserBase)
BackgroundImageLayout

此控件不支持此属性。This property is not supported by this control.

(继承自 WebBrowserBase)
BindingContext

获取或设置控件的 BindingContextGets or sets the BindingContext for the control.

(继承自 Control)
Bottom

获取控件下边缘与其容器的工作区上边缘之间的距离(以像素为单位)。Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area.

(继承自 Control)
Bounds

获取或设置控件(包括其非工作区元素)相对于其父控件的大小和位置(以像素为单位)。Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control.

(继承自 Control)
CanEnableIme

获取一个用以指示是否可以将 ImeMode 属性设置为活动值的值,以启用 IME 支持。Gets a value indicating whether the ImeMode property can be set to an active value, to enable IME support.

(继承自 Control)
CanFocus

获取一个值,该值指示控件是否可以接收焦点。Gets a value indicating whether the control can receive focus.

(继承自 Control)
CanGoBack

获取一个值,该值指示导航历史记录中的上一页是否可用,如果可用,GoBack() 方法才能成功。Gets a value indicating whether a previous page in navigation history is available, which allows the GoBack() method to succeed.

CanGoForward

获取一个值,该值指示导航历史记录中的下一页是否可用,如果可用,GoForward() 方法才能成功。Gets a value indicating whether a subsequent page in navigation history is available, which allows the GoForward() method to succeed.

CanRaiseEvents

确定是否可以在控件上引发事件。Determines if events can be raised on the control.

(继承自 Control)
CanSelect

获取一个值,该值指示是否可以选中控件。Gets a value indicating whether the control can be selected.

(继承自 Control)
Capture

获取或设置一个值,该值指示控件是否已捕获鼠标。Gets or sets a value indicating whether the control has captured the mouse.

(继承自 Control)
CausesValidation

获取或设置一个值,该值指示控件是否会引起在任何需要在接收焦点时执行验证的控件上执行验证。Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus.

(继承自 Control)
ClientRectangle

获取表示控件的工作区的矩形。Gets the rectangle that represents the client area of the control.

(继承自 Control)
ClientSize

获取或设置控件的工作区的高度和宽度。Gets or sets the height and width of the client area of the control.

(继承自 Control)
CompanyName

获取包含控件的应用程序的公司名称或创建者。Gets the name of the company or creator of the application containing the control.

(继承自 Control)
Container

获取 IContainer,它包含 ComponentGets the IContainer that contains the Component.

(继承自 Component)
ContainsFocus

获取一个值,该值指示控件或它的一个子控件当前是否有输入焦点。Gets a value indicating whether the control, or one of its child controls, currently has the input focus.

(继承自 Control)
ContextMenu

获取或设置与控件关联的快捷菜单。Gets or sets the shortcut menu associated with the control.

(继承自 Control)
ContextMenuStrip

获取或设置与此控件关联的 ContextMenuStripGets or sets the ContextMenuStrip associated with this control.

(继承自 Control)
Controls

获取包含在控件内的控件的集合。Gets the collection of controls contained within the control.

(继承自 Control)
Created

获取一个值,该值指示控件是否已经创建。Gets a value indicating whether the control has been created.

(继承自 Control)
CreateParams

获取创建控件句柄时所需要的创建参数。Gets the required creation parameters when the control handle is created.

(继承自 Control)
Cursor

此控件不支持此属性。This property is not supported by this control.

(继承自 WebBrowserBase)
DataBindings

为该控件获取数据绑定。Gets the data bindings for the control.

(继承自 Control)
DefaultCursor

获取或设置控件的默认光标。Gets or sets the default cursor for the control.

(继承自 Control)
DefaultImeMode

获取控件支持的默认输入法编辑器 (IME) 模式。Gets the default Input Method Editor (IME) mode supported by the control.

(继承自 Control)
DefaultMargin

获取控件之间默认指定的间距(以像素为单位)。Gets the space, in pixels, that is specified by default between controls.

(继承自 Control)
DefaultMaximumSize

获取以像素为单位的长度和高度,此长度和高度被指定为控件的默认最大大小。Gets the length and height, in pixels, that is specified as the default maximum size of a control.

(继承自 Control)
DefaultMinimumSize

获取以像素为单位的长度和高度,此长度和高度被指定为控件的默认最小大小。Gets the length and height, in pixels, that is specified as the default minimum size of a control.

(继承自 Control)
DefaultPadding

获取控件内容的内部间距(以像素为单位)。Gets the internal spacing, in pixels, of the contents of a control.

(继承自 Control)
DefaultSize

获取控件的默认大小。Gets the default size of the control.

DesignMode

获取一个值,用以指示 Component 当前是否处于设计模式。Gets a value that indicates whether the Component is currently in design mode.

(继承自 Component)
DeviceDpi

获取显示当前控件的显示设备的 DPI 值。Gets the DPI value for the display device where the control is currently being displayed.

(继承自 Control)
DisplayRectangle

获取表示控件的显示区域的矩形。Gets the rectangle that represents the display area of the control.

(继承自 Control)
Disposing

获取一个值,该值指示 Control 基类是否在释放进程中。Gets a value indicating whether the base Control class is in the process of disposing.

(继承自 Control)
Dock

获取或设置哪些控件边框停靠到其父控件并确定控件如何随其父级一起调整大小。Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent.

(继承自 Control)
Document

获取一个 HtmlDocument,它表示当前显示在 WebBrowser 控件中的网页。Gets an HtmlDocument representing the Web page currently displayed in the WebBrowser control.

DocumentStream

获取或设置一个流,该流包含显示在 WebBrowser 控件中的网页的内容。Gets or sets a stream containing the contents of the Web page displayed in the WebBrowser control.

DocumentText

获取或设置显示在 WebBrowser 控件中的页的 HTML 内容。Gets or sets the HTML contents of the page displayed in the WebBrowser control.

DocumentTitle

获取当前显示在 WebBrowser 控件中的文档的标题。Gets the title of the document currently displayed in the WebBrowser control.

DocumentType

获取当前显示在 WebBrowser 控件中的文档的类型。Gets the type of the document currently displayed in the WebBrowser control.

DoubleBuffered

获取或设置一个值,该值指示此控件是否应使用辅助缓冲区重绘其图面,以减少或避免闪烁。Gets or sets a value indicating whether this control should redraw its surface using a secondary buffer to reduce or prevent flicker.

(继承自 Control)
Enabled

此控件不支持此属性。This property is not supported by this control.

(继承自 WebBrowserBase)
EncryptionLevel

获取一个值,该值指示当前显示在 WebBrowser 控件中的文档所使用的加密方法。Gets a value indicating the encryption method used by the document currently displayed in the WebBrowser control.

Events

获取附加到此 Component 的事件处理程序的列表。Gets the list of event handlers that are attached to this Component.

(继承自 Component)
Focused

获取一个值,该值指示控件或其任一子窗口是否具有输入焦点。Gets a value indicating whether the control or any of its child windows has input focus.

Font

此属性对于此控件无意义。This property is not meaningful for this control.

(继承自 WebBrowserBase)
FontHeight

获取或设置控件的字体的高度。Gets or sets the height of the font of the control.

(继承自 Control)
ForeColor

此属性对于此控件无意义。This property is not meaningful for this control.

(继承自 WebBrowserBase)
Handle

获取控件绑定到的窗口句柄。Gets the window handle that the control is bound to.

(继承自 Control)
HasChildren

获取一个值,该值指示控件是否包含一个或多个子控件。Gets a value indicating whether the control contains one or more child controls.

(继承自 Control)
Height

获取或设置控件的高度。Gets or sets the height of the control.

(继承自 Control)
ImeMode

此属性对于此控件无意义。This property is not meaningful for this control.

(继承自 WebBrowserBase)
ImeModeBase

获取或设置控件的 IME 模式。Gets or sets the IME mode of a control.

(继承自 Control)
InvokeRequired

获取一个值,该值指示调用方在对控件进行方法调用时是否必须调用 Invoke 方法,因为调用方位于创建控件所在的线程以外的线程中。Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on.

(继承自 Control)
IsAccessible

获取或设置一个值,该值指示控件对辅助功能应用程序是否可见。Gets or sets a value indicating whether the control is visible to accessibility applications.

(继承自 Control)
IsBusy

获取一个值,该值指示 WebBrowser 控件当前是否正在加载新文档。Gets a value indicating whether the WebBrowser control is currently loading a new document.

IsDisposed

获取一个值,该值指示控件是否已经被释放。Gets a value indicating whether the control has been disposed of.

(继承自 Control)
IsHandleCreated

获取一个值,该值指示控件是否有与它关联的句柄。Gets a value indicating whether the control has a handle associated with it.

(继承自 Control)
IsMirrored

获取一个值,该值指示此控件是否为镜像控件。Gets a value indicating whether the control is mirrored.

(继承自 Control)
IsOffline

获取一个值,该值指示 WebBrowser 控件是否处于脱机模式。Gets a value indicating whether the WebBrowser control is in offline mode.

IsWebBrowserContextMenuEnabled

获取或设置一个值,该值指示 WebBrowser 控件是否启用了快捷菜单。Gets or a sets a value indicating whether the shortcut menu of the WebBrowser control is enabled.

LayoutEngine

获取控件的布局引擎的缓存实例。Gets a cached instance of the control's layout engine.

(继承自 Control)
Left

获取或设置控件左边缘与其容器的工作区左边缘之间的距离(以像素为单位)。Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area.

(继承自 Control)
Location

获取或设置该控件的左上角相对于其容器的左上角的坐标。Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container.

(继承自 Control)
Margin

获取或设置控件之间的空间。Gets or sets the space between controls.

(继承自 Control)
MaximumSize

获取或设置大小,该大小是 GetPreferredSize(Size) 可以指定的上限。Gets or sets the size that is the upper limit that GetPreferredSize(Size) can specify.

(继承自 Control)
MinimumSize

获取或设置大小,该大小是 GetPreferredSize(Size) 可以指定的下限。Gets or sets the size that is the lower limit that GetPreferredSize(Size) can specify.

(继承自 Control)
Name

获取或设置控件的名称。Gets or sets the name of the control.

(继承自 Control)
ObjectForScripting

获取或设置一个对象,该对象可由显示在 WebBrowser 控件中的网页所包含的脚本代码访问。Gets or sets an object that can be accessed by scripting code that is contained within a Web page displayed in the WebBrowser control.

Padding

此属性对于此控件无意义。This property is not meaningful for this control.

Parent

获取或设置控件的父容器。Gets or sets the parent container of the control.

(继承自 Control)
PreferredSize

获取可以容纳控件的矩形区域的大小。Gets the size of a rectangular area into which the control can fit.

(继承自 Control)
ProductName

获取包含控件的程序集的产品名称。Gets the product name of the assembly containing the control.

(继承自 Control)
ProductVersion

获取包含控件的程序集的版本。Gets the version of the assembly containing the control.

(继承自 Control)
ReadyState

获取一个值,该值指示 WebBrowser 控件的当前状态。Gets a value indicating the current state of the WebBrowser control.

RecreatingHandle

获取一个值,该值指示控件当前是否在重新创建其句柄。Gets a value indicating whether the control is currently re-creating its handle.

(继承自 Control)
Region

获取或设置与控件关联的窗口区域。Gets or sets the window region associated with the control.

(继承自 Control)
RenderRightToLeft

此属性现已过时。This property is now obsolete.

(继承自 Control)
ResizeRedraw

获取或设置一个值,该值指示控件在调整大小时是否重绘自己。Gets or sets a value indicating whether the control redraws itself when resized.

(继承自 Control)
Right

获取控件右边缘与其容器的工作区左边缘之间的距离(以像素为单位)。Gets the distance, in pixels, between the right edge of the control and the left edge of its container's client area.

(继承自 Control)
RightToLeft

此控件不支持此属性。This property is not supported by this control.

(继承自 WebBrowserBase)
ScaleChildren

获取一个值,该值确定子控件的缩放。Gets a value that determines the scaling of child controls.

(继承自 Control)
ScriptErrorsSuppressed

获取或设置一个值,该值指示 WebBrowser 是否显示对话框,如脚本错误消息。Gets or sets a value indicating whether the WebBrowser displays dialog boxes such as script error messages.

ScrollBarsEnabled

获取或设置一个值,该值指示是否在 WebBrowser 控件中显示滚动条。Gets or sets a value indicating whether scroll bars are displayed in the WebBrowser control.

ShowFocusCues

获取一个值,该值指示控件是否应显示聚焦框。Gets a value indicating whether the control should display focus rectangles.

(继承自 Control)
ShowKeyboardCues

获取一个值,该值指示用户界面是否处于适当的状态以显示或隐藏键盘快捷键。Gets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators.

(继承自 Control)
Site

获取或设置控件的站点。Gets or sets the site of the control.

(继承自 WebBrowserBase)
Size

获取或设置控件的高度和宽度。Gets or sets the height and width of the control.

(继承自 Control)
StatusText

获取 WebBrowser 控件的状态文本。Gets the status text of the WebBrowser control.

TabIndex

获取或设置控件在其容器内的 Tab 键顺序。Gets or sets the tab order of the control within its container.

(继承自 Control)
TabStop

获取或设置一个值,该值指示用户能否使用 Tab 键将焦点放到该控件上。Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.

(继承自 Control)
Tag

获取或设置包含有关控件的数据的对象。Gets or sets the object that contains data about the control.

(继承自 Control)
Text

此控件不支持此属性。This property is not supported by this control.

(继承自 WebBrowserBase)
Top

获取或设置控件上边缘与其容器的工作区上边缘之间的距离(以像素为单位)。Gets or sets the distance, in pixels, between the top edge of the control and the top edge of its container's client area.

(继承自 Control)
TopLevelControl

获取没有另一个 Windows 窗体控件作为其父级的父控件。Gets the parent control that is not parented by another Windows Forms control. 通常,这是控件所在的最外面的 FormTypically, this is the outermost Form that the control is contained in.

(继承自 Control)
Url

获取或设置当前文档的 URL。Gets or sets the URL of the current document.

UseWaitCursor

此控件不支持此属性。This property is not supported by this control.

(继承自 WebBrowserBase)
Version

获取所安装的 Internet Explorer 的版本。Gets the version of Internet Explorer installed.

Visible

获取或设置一个值,该值指示是否显示该控件及其所有子控件。Gets or sets a value indicating whether the control and all its child controls are displayed.

(继承自 Control)
WebBrowserShortcutsEnabled

获取或设置一个值,该值指示 WebBrowser 控件中是否启用了键盘快捷键。Gets or sets a value indicating whether keyboard shortcuts are enabled within the WebBrowser control.

Width

获取或设置控件的宽度。Gets or sets the width of the control.

(继承自 Control)
WindowTarget

此属性与此类无关。This property is not relevant for this class.

(继承自 Control)

方法

AccessibilityNotifyClients(AccessibleEvents, Int32)

就指定子控件的指定 AccessibleEvents 通知辅助功能客户端应用程序。Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control.

(继承自 Control)
AccessibilityNotifyClients(AccessibleEvents, Int32, Int32)

就指定子控件的指定 AccessibleEvents 通知辅助功能客户端应用程序。Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control .

(继承自 Control)
AttachInterfaces(Object)

创建基础 ActiveX 控件时由该控件调用。Called by the control when the underlying ActiveX control is created.

BeginInvoke(Delegate)

在创建控件的基础句柄所在线程上异步执行指定委托。Executes the specified delegate asynchronously on the thread that the control's underlying handle was created on.

(继承自 Control)
BeginInvoke(Delegate, Object[])

在创建控件的基础句柄所在线程上,用指定的参数异步执行指定委托。Executes the specified delegate asynchronously with the specified arguments, on the thread that the control's underlying handle was created on.

(继承自 Control)
BringToFront()

将控件带到 Z 顺序的前面。Brings the control to the front of the z-order.

(继承自 Control)
Contains(Control)

检索一个值,该值指示指定控件是否为一个控件的子控件。Retrieves a value indicating whether the specified control is a child of the control.

(继承自 Control)
CreateAccessibilityInstance()

为该控件创建一个新的辅助功能对象。Creates a new accessibility object for the control.

(继承自 Control)
CreateControl()

强制创建可见控件,包括创建句柄和任何可见子控件。Forces the creation of the visible control, including the creation of the handle and any visible child controls.

(继承自 Control)
CreateControlsInstance()

为控件创建控件集合的新实例。Creates a new instance of the control collection for the control.

(继承自 Control)
CreateGraphics()

为控件创建 GraphicsCreates the Graphics for the control.

(继承自 Control)
CreateHandle()

为该控件创建句柄。Creates a handle for the control.

(继承自 Control)
CreateObjRef(Type)

创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(继承自 MarshalByRefObject)
CreateSink()

使基础 ActiveX 控件与可以处理控件事件的客户端相关联。Associates the underlying ActiveX control with a client that can handle control events.

CreateWebBrowserSiteBase()

返回对非托管 WebBrowser ActiveX 控件站点的引用,扩展该站点可以对托管 WebBrowser 控件进行自定义。Returns a reference to the unmanaged WebBrowser ActiveX control site, which you can extend to customize the managed WebBrowser control.

DefWndProc(Message)

向默认窗口过程发送指定消息。Sends the specified message to the default window procedure.

(继承自 Control)
DestroyHandle()

毁坏与该控件关联的句柄。Destroys the handle associated with the control.

(继承自 Control)
DetachInterfaces()

放弃基础 ActiveX 控件时由该控件调用。Called by the control when the underlying ActiveX control is discarded.

DetachSink()

从基础 ActiveX 控件中释放附加在 CreateSink() 方法中的事件处理客户端。Releases the event-handling client attached in the CreateSink() method from the underlying ActiveX control.

Dispose()

释放由 Component 使用的所有资源。Releases all resources used by the Component.

(继承自 Component)
Dispose(Boolean)

释放由 WebBrowser 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources used by the WebBrowser and optionally releases the managed resources.

DoDragDrop(Object, DragDropEffects)

开始拖放操作。Begins a drag-and-drop operation.

(继承自 Control)
DrawToBitmap(Bitmap, Rectangle)

此控件不支持此方法。This method is not supported by this control.

(继承自 WebBrowserBase)
EndInvoke(IAsyncResult)

检索由传递的 IAsyncResult 表示的异步操作的返回值。Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed.

(继承自 Control)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
FindForm()

检索控件所在的窗体。Retrieves the form that the control is on.

(继承自 Control)
Focus()

为控件设置输入焦点。Sets input focus to the control.

(继承自 Control)
GetAccessibilityObjectById(Int32)

检索指定的 AccessibleObjectRetrieves the specified AccessibleObject.

(继承自 Control)
GetAutoSizeMode()

检索一个值,该值指示当启用控件的 AutoSize 属性时控件的行为方式。Retrieves a value indicating how a control will behave when its AutoSize property is enabled.

(继承自 Control)
GetChildAtPoint(Point)

检索位于指定坐标处的子控件。Retrieves the child control that is located at the specified coordinates.

(继承自 Control)
GetChildAtPoint(Point, GetChildAtPointSkip)

检索位于指定坐标的子控件,并且指定是否忽略特定类型的子控件。Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type.

(继承自 Control)
GetContainerControl()

沿着控件的父控件链向上,返回下一个 ContainerControlReturns the next ContainerControl up the control's chain of parent controls.

(继承自 Control)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetLifetimeService()

检索控制此实例的生存期策略的当前生存期服务对象。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(继承自 MarshalByRefObject)
GetNextControl(Control, Boolean)

按照子控件的 Tab 键顺序向前或向后检索下一个控件。Retrieves the next control forward or back in the tab order of child controls.

(继承自 Control)
GetPreferredSize(Size)

检索适合控件的矩形区域的大小。Retrieves the size of a rectangular area into which a control can be fitted.

(继承自 Control)
GetScaledBounds(Rectangle, SizeF, BoundsSpecified)

检索缩放控件时的边界。Retrieves the bounds within which the control is scaled.

(继承自 Control)
GetService(Type)

返回一个对象,该对象表示由 Component 或它的 Container 提供的服务。Returns an object that represents a service provided by the Component or by its Container.

(继承自 Component)
GetStyle(ControlStyles)

为控件检索指定控件样式位的值。Retrieves the value of the specified control style bit for the control.

(继承自 Control)
GetTopLevel()

确定控件是否是顶级控件。Determines if the control is a top-level control.

(继承自 Control)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
GoBack()

如果导航历史记录中的上一页可用,则将 WebBrowser 控件导航到该页。Navigates the WebBrowser control to the previous page in the navigation history, if one is available.

GoForward()

如果导航历史记录中的下一页可用,则将 WebBrowser 控件导航到该页。Navigates the WebBrowser control to the next page in the navigation history, if one is available.

GoHome()

WebBrowser 控件导航到当前用户的主页。Navigates the WebBrowser control to the home page of the current user.

GoSearch()

WebBrowser 控件导航到当前用户的默认搜索页。Navigates the WebBrowser control to the default search page of the current user.

Hide()

对用户隐藏控件。Conceals the control from the user.

(继承自 Control)
InitializeLifetimeService()

获取生存期服务对象来控制此实例的生存期策略。Obtains a lifetime service object to control the lifetime policy for this instance.

(继承自 MarshalByRefObject)
InitLayout()

在将控件添加到另一个容器之后调用。Called after the control has been added to another container.

(继承自 Control)
Invalidate()

使控件的整个图面无效并导致重绘控件。Invalidates the entire surface of the control and causes the control to be redrawn.

(继承自 Control)
Invalidate(Boolean)

使控件的特定区域无效并向控件发送绘制消息。Invalidates a specific region of the control and causes a paint message to be sent to the control. 还可以使分配给该控件的子控件无效。Optionally, invalidates the child controls assigned to the control.

(继承自 Control)
Invalidate(Rectangle)

使控件的指定区域无效(将其添加到控件的更新区域,下次绘制操作时将重新绘制更新区域),并向控件发送绘制消息。Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

(继承自 Control)
Invalidate(Rectangle, Boolean)

使控件的指定区域无效(将其添加到控件的更新区域,下次绘制操作时将重新绘制更新区域),并向控件发送绘制消息。Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. 还可以使分配给该控件的子控件无效。Optionally, invalidates the child controls assigned to the control.

(继承自 Control)
Invalidate(Region)

使控件的指定区域无效(将其添加到控件的更新区域,下次绘制操作时将重新绘制更新区域),并向控件发送绘制消息。Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

(继承自 Control)
Invalidate(Region, Boolean)

使控件的指定区域无效(将其添加到控件的更新区域,下次绘制操作时将重新绘制更新区域),并向控件发送绘制消息。Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. 还可以使分配给该控件的子控件无效。Optionally, invalidates the child controls assigned to the control.

(继承自 Control)
Invoke(Delegate)

在拥有此控件的基础窗口句柄的线程上执行指定的委托。Executes the specified delegate on the thread that owns the control's underlying window handle.

(继承自 Control)
Invoke(Delegate, Object[])

在拥有控件的基础窗口句柄的线程上,用指定的参数列表执行指定委托。Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments.

(继承自 Control)
InvokeGotFocus(Control, EventArgs)

为指定的控件引发 GotFocus 事件。Raises the GotFocus event for the specified control.

(继承自 Control)
InvokeLostFocus(Control, EventArgs)

为指定的控件引发 LostFocus 事件。Raises the LostFocus event for the specified control.

(继承自 Control)
InvokeOnClick(Control, EventArgs)

为指定的控件引发 Click 事件。Raises the Click event for the specified control.

(继承自 Control)
InvokePaint(Control, PaintEventArgs)

为指定的控件引发 Paint 事件。Raises the Paint event for the specified control.

(继承自 Control)
InvokePaintBackground(Control, PaintEventArgs)

为指定的控件引发 PaintBackground 事件。Raises the PaintBackground event for the specified control.

(继承自 Control)
IsInputChar(Char)

确定一个字符是否是控件可识别的输入字符。Determines if a character is an input character that the control recognizes.

(继承自 WebBrowserBase)
IsInputKey(Keys)

确定指定的键是常规输入键还是需要预处理的特殊键。Determines whether the specified key is a regular input key or a special key that requires preprocessing.

(继承自 Control)
LogicalToDeviceUnits(Int32)

将逻辑 DPI 值转换为它的等效 DeviceUnit DPI 值。Converts a Logical DPI value to its equivalent DeviceUnit DPI value.

(继承自 Control)
LogicalToDeviceUnits(Size)

通过为当前 DPI 缩放小大并将其向下舍入为最接近的宽度和高度的整数值,将大小从逻辑单位转换为设备单位。Transforms a size from logical to device units by scaling it for the current DPI and rounding down to the nearest integer value for width and height.

(继承自 Control)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。Creates a shallow copy of the current MarshalByRefObject object.

(继承自 MarshalByRefObject)
Navigate(String)

将指定的统一资源定位符 (URL) 处的文档加载到 WebBrowser 控件中,替换上一个文档。Loads the document at the specified Uniform Resource Locator (URL) into the WebBrowser control, replacing the previous document.

Navigate(String, Boolean)

将指定的统一资源定位符 (URL) 处的文档加载到浏览器新窗口或 WebBrowser 控件中。Loads the document at the specified Uniform Resource Locator (URL) into a new browser window or into the WebBrowser control.

Navigate(String, String)

将指定的统一资源定位符 (URL) 处的文档加载到 WebBrowser 控件中,替换具有指定名称的网页框架的内容。Loads the document at the specified Uniform Resource Locator (URL) into the WebBrowser control, replacing the contents of the Web page frame with the specified name.

Navigate(String, String, Byte[], String)

将指定的统一资源定位符 (URL) 处的文档加载到 WebBrowser 控件中,使用指定 HTTP 数据请求该文档并替换具有指定名称的网页框架的内容。Loads the document at the specified Uniform Resource Locator (URL) into the WebBrowser control, requesting it using the specified HTTP data and replacing the contents of the Web page frame with the specified name.

Navigate(Uri)

将指定的 Uri 所指示的位置上的文档加载到 WebBrowser 控件中,替换上一个文档。Loads the document at the location indicated by the specified Uri into the WebBrowser control, replacing the previous document.

Navigate(Uri, Boolean)

将指定的 Uri 所指示的位置上的文档加载到浏览器新窗口或 WebBrowser 控件中。Loads the document at the location indicated by the specified Uri into a new browser window or into the WebBrowser control.

Navigate(Uri, String)

将指定的 Uri 所指示的位置上的文档加载到 WebBrowser 控件中,替换具有指定名称的网页框架的内容。Loads the document at the location indicated by the specified Uri into the WebBrowser control, replacing the contents of the Web page frame with the specified name.

Navigate(Uri, String, Byte[], String)

将指定的 Uri 所指示的位置上的文档加载到 WebBrowser 控件中,使用指定 HTTP 数据请求该文档并替换具有指定名称的网页框架的内容。Loads the document at the location indicated by the specified Uri into the WebBrowser control, requesting it using the specified HTTP data and replacing the contents of the Web page frame with the specified name.

NotifyInvalidate(Rectangle)

引发 Invalidated 事件,其中带有要使之无效的控件的指定区域。Raises the Invalidated event with a specified region of the control to invalidate.

(继承自 Control)
OnAutoSizeChanged(EventArgs)

引发 AutoSizeChanged 事件。Raises the AutoSizeChanged event.

(继承自 Control)
OnBackColorChanged(EventArgs)

引发 BackColorChanged 事件。Raises the BackColorChanged event.

(继承自 WebBrowserBase)
OnBackgroundImageChanged(EventArgs)

引发 BackgroundImageChanged 事件。Raises the BackgroundImageChanged event.

(继承自 Control)
OnBackgroundImageLayoutChanged(EventArgs)

引发 BackgroundImageLayoutChanged 事件。Raises the BackgroundImageLayoutChanged event.

(继承自 Control)
OnBindingContextChanged(EventArgs)

引发 BindingContextChanged 事件。Raises the BindingContextChanged event.

(继承自 Control)
OnCanGoBackChanged(EventArgs)

引发 CanGoBackChanged 事件。Raises the CanGoBackChanged event.

OnCanGoForwardChanged(EventArgs)

引发 CanGoForwardChanged 事件。Raises the CanGoForwardChanged event.

OnCausesValidationChanged(EventArgs)

引发 CausesValidationChanged 事件。Raises the CausesValidationChanged event.

(继承自 Control)
OnChangeUICues(UICuesEventArgs)

引发 ChangeUICues 事件。Raises the ChangeUICues event.

(继承自 Control)
OnClick(EventArgs)

引发 Click 事件。Raises the Click event.

(继承自 Control)
OnClientSizeChanged(EventArgs)

引发 ClientSizeChanged 事件。Raises the ClientSizeChanged event.

(继承自 Control)
OnContextMenuChanged(EventArgs)

引发 ContextMenuChanged 事件。Raises the ContextMenuChanged event.

(继承自 Control)
OnContextMenuStripChanged(EventArgs)

引发 ContextMenuStripChanged 事件。Raises the ContextMenuStripChanged event.

(继承自 Control)
OnControlAdded(ControlEventArgs)

引发 ControlAdded 事件。Raises the ControlAdded event.

(继承自 Control)
OnControlRemoved(ControlEventArgs)

引发 ControlRemoved 事件。Raises the ControlRemoved event.

(继承自 Control)
OnCreateControl()

引发 CreateControl() 方法。Raises the CreateControl() method.

(继承自 Control)
OnCursorChanged(EventArgs)

引发 CursorChanged 事件。Raises the CursorChanged event.

(继承自 Control)
OnDockChanged(EventArgs)

引发 DockChanged 事件。Raises the DockChanged event.

(继承自 Control)
OnDocumentCompleted(WebBrowserDocumentCompletedEventArgs)

引发 DocumentCompleted 事件。Raises the DocumentCompleted event.

OnDocumentTitleChanged(EventArgs)

引发 DocumentTitleChanged 事件。Raises the DocumentTitleChanged event.

OnDoubleClick(EventArgs)

引发 DoubleClick 事件。Raises the DoubleClick event.

(继承自 Control)
OnDpiChangedAfterParent(EventArgs)

引发 DpiChangedAfterParent 事件。Raises the DpiChangedAfterParent event.

(继承自 Control)
OnDpiChangedBeforeParent(EventArgs)

引发 DpiChangedBeforeParent 事件。Raises the DpiChangedBeforeParent event.

(继承自 Control)
OnDragDrop(DragEventArgs)

引发 DragDrop 事件。Raises the DragDrop event.

(继承自 Control)
OnDragEnter(DragEventArgs)

引发 DragEnter 事件。Raises the DragEnter event.

(继承自 Control)
OnDragLeave(EventArgs)

引发 DragLeave 事件。Raises the DragLeave event.

(继承自 Control)
OnDragOver(DragEventArgs)

引发 DragOver 事件。Raises the DragOver event.

(继承自 Control)
OnEnabledChanged(EventArgs)

引发 EnabledChanged 事件。Raises the EnabledChanged event.

(继承自 Control)
OnEncryptionLevelChanged(EventArgs)

引发 EncryptionLevelChanged 事件。Raises the EncryptionLevelChanged event.

OnEnter(EventArgs)

引发 Enter 事件。Raises the Enter event.

(继承自 Control)
OnFileDownload(EventArgs)

引发 FileDownload 事件。Raises the FileDownload event.

OnFontChanged(EventArgs)

引发 FontChanged 事件。Raises the FontChanged event.

(继承自 WebBrowserBase)
OnForeColorChanged(EventArgs)

引发 ForeColorChanged 事件。Raises the ForeColorChanged event.

(继承自 WebBrowserBase)
OnGiveFeedback(GiveFeedbackEventArgs)

引发 GiveFeedback 事件。Raises the GiveFeedback event.

(继承自 Control)
OnGotFocus(EventArgs)

引发 GotFocus 事件。Raises the GotFocus event.

(继承自 WebBrowserBase)
OnHandleCreated(EventArgs)

引发 HandleCreated 事件。Raises the HandleCreated event.

(继承自 WebBrowserBase)
OnHandleDestroyed(EventArgs)

引发 HandleDestroyed 事件。Raises the HandleDestroyed event.

(继承自 Control)
OnHelpRequested(HelpEventArgs)

引发 HelpRequested 事件。Raises the HelpRequested event.

(继承自 Control)
OnImeModeChanged(EventArgs)

引发 ImeModeChanged 事件。Raises the ImeModeChanged event.

(继承自 Control)
OnInvalidated(InvalidateEventArgs)

引发 Invalidated 事件。Raises the Invalidated event.

(继承自 Control)
OnKeyDown(KeyEventArgs)

引发 KeyDown 事件。Raises the KeyDown event.

(继承自 Control)
OnKeyPress(KeyPressEventArgs)

引发 KeyPress 事件。Raises the KeyPress event.

(继承自 Control)
OnKeyUp(KeyEventArgs)

引发 KeyUp 事件。Raises the KeyUp event.

(继承自 Control)
OnLayout(LayoutEventArgs)

引发 Layout 事件。Raises the Layout event.

(继承自 Control)
OnLeave(EventArgs)

引发 Leave 事件。Raises the Leave event.

(继承自 Control)
OnLocationChanged(EventArgs)

引发 LocationChanged 事件。Raises the LocationChanged event.

(继承自 Control)
OnLostFocus(EventArgs)

引发 LostFocus 事件。Raises the LostFocus event.

(继承自 WebBrowserBase)
OnMarginChanged(EventArgs)

引发 MarginChanged 事件。Raises the MarginChanged event.

(继承自 Control)
OnMouseCaptureChanged(EventArgs)

引发 MouseCaptureChanged 事件。Raises the MouseCaptureChanged event.

(继承自 Control)
OnMouseClick(MouseEventArgs)

引发 MouseClick 事件。Raises the MouseClick event.

(继承自 Control)
OnMouseDoubleClick(MouseEventArgs)

引发 MouseDoubleClick 事件。Raises the MouseDoubleClick event.

(继承自 Control)
OnMouseDown(MouseEventArgs)

引发 MouseDown 事件。Raises the MouseDown event.

(继承自 Control)
OnMouseEnter(EventArgs)

引发 MouseEnter 事件。Raises the MouseEnter event.

(继承自 Control)
OnMouseHover(EventArgs)

引发 MouseHover 事件。Raises the MouseHover event.

(继承自 Control)
OnMouseLeave(EventArgs)

引发 MouseLeave 事件。Raises the MouseLeave event.

(继承自 Control)
OnMouseMove(MouseEventArgs)

引发 MouseMove 事件。Raises the MouseMove event.

(继承自 Control)
OnMouseUp(MouseEventArgs)

引发 MouseUp 事件。Raises the MouseUp event.

(继承自 Control)
OnMouseWheel(MouseEventArgs)

引发 MouseWheel 事件。Raises the MouseWheel event.

(继承自 Control)
OnMove(EventArgs)

引发 Move 事件。Raises the Move event.

(继承自 Control)
OnNavigated(WebBrowserNavigatedEventArgs)

引发 Navigated 事件。Raises the Navigated event.

OnNavigating(WebBrowserNavigatingEventArgs)

引发 Navigating 事件。Raises the Navigating event.

OnNewWindow(CancelEventArgs)

引发 NewWindow 事件。Raises the NewWindow event.

OnNotifyMessage(Message)

向控件通知 Windows 消息。Notifies the control of Windows messages.

(继承自 Control)
OnPaddingChanged(EventArgs)

引发 PaddingChanged 事件。Raises the PaddingChanged event.

(继承自 Control)
OnPaint(PaintEventArgs)

引发 Paint 事件。Raises the Paint event.

(继承自 Control)
OnPaintBackground(PaintEventArgs)

绘制控件的背景。Paints the background of the control.

(继承自 Control)
OnParentBackColorChanged(EventArgs)

当控件容器的 BackColorChanged 属性值更改时,将引发 BackColor 事件。Raises the BackColorChanged event when the BackColor property value of the control's container changes.

(继承自 Control)
OnParentBackgroundImageChanged(EventArgs)

当控件容器的 BackgroundImageChanged 属性值更改时,将引发 BackgroundImage 事件。Raises the BackgroundImageChanged event when the BackgroundImage property value of the control's container changes.

(继承自 Control)
OnParentBindingContextChanged(EventArgs)

当控件容器的 BindingContextChanged 属性值更改时,将引发 BindingContext 事件。Raises the BindingContextChanged event when the BindingContext property value of the control's container changes.

(继承自 Control)
OnParentChanged(EventArgs)

此成员重写 OnParentChanged(EventArgs)This member overrides OnParentChanged(EventArgs).

(继承自 WebBrowserBase)
OnParentCursorChanged(EventArgs)

引发 CursorChanged 事件。Raises the CursorChanged event.

(继承自 Control)
OnParentEnabledChanged(EventArgs)

当控件容器的 EnabledChanged 属性值更改时,将引发 Enabled 事件。Raises the EnabledChanged event when the Enabled property value of the control's container changes.

(继承自 Control)
OnParentFontChanged(EventArgs)

当控件容器的 FontChanged 属性值更改时,将引发 Font 事件。Raises the FontChanged event when the Font property value of the control's container changes.

(继承自 Control)
OnParentForeColorChanged(EventArgs)

当控件容器的 ForeColorChanged 属性值更改时,将引发 ForeColor 事件。Raises the ForeColorChanged event when the ForeColor property value of the control's container changes.

(继承自 Control)
OnParentRightToLeftChanged(EventArgs)

当控件容器的 RightToLeftChanged 属性值更改时,将引发 RightToLeft 事件。Raises the RightToLeftChanged event when the RightToLeft property value of the control's container changes.

(继承自 Control)
OnParentVisibleChanged(EventArgs)

当控件容器的 VisibleChanged 属性值更改时,将引发 Visible 事件。Raises the VisibleChanged event when the Visible property value of the control's container changes.

(继承自 Control)
OnPreviewKeyDown(PreviewKeyDownEventArgs)

引发 PreviewKeyDown 事件。Raises the PreviewKeyDown event.

(继承自 Control)
OnPrint(PaintEventArgs)

引发 Paint 事件。Raises the Paint event.

(继承自 Control)
OnProgressChanged(WebBrowserProgressChangedEventArgs)

引发 ProgressChanged 事件。Raises the ProgressChanged event.

OnQueryContinueDrag(QueryContinueDragEventArgs)

引发 QueryContinueDrag 事件。Raises the QueryContinueDrag event.

(继承自 Control)
OnRegionChanged(EventArgs)

引发 RegionChanged 事件。Raises the RegionChanged event.

(继承自 Control)
OnResize(EventArgs)

引发 Resize 事件。Raises the Resize event.

(继承自 Control)
OnRightToLeftChanged(EventArgs)

此方法对于此控件无意义。This method is not meaningful for this control.

(继承自 WebBrowserBase)
OnSizeChanged(EventArgs)

引发 SizeChanged 事件。Raises the SizeChanged event.

(继承自 Control)
OnStatusTextChanged(EventArgs)

引发 StatusTextChanged 事件。Raises the StatusTextChanged event.

OnStyleChanged(EventArgs)

引发 StyleChanged 事件。Raises the StyleChanged event.

(继承自 Control)
OnSystemColorsChanged(EventArgs)

引发 SystemColorsChanged 事件。Raises the SystemColorsChanged event.

(继承自 Control)
OnTabIndexChanged(EventArgs)

引发 TabIndexChanged 事件。Raises the TabIndexChanged event.

(继承自 Control)
OnTabStopChanged(EventArgs)

引发 TabStopChanged 事件。Raises the TabStopChanged event.

(继承自 Control)
OnTextChanged(EventArgs)

引发 TextChanged 事件。Raises the TextChanged event.

(继承自 Control)
OnValidated(EventArgs)

引发 Validated 事件。Raises the Validated event.

(继承自 Control)
OnValidating(CancelEventArgs)

引发 Validating 事件。Raises the Validating event.

(继承自 Control)
OnVisibleChanged(EventArgs)

此成员重写 OnVisibleChanged(EventArgs)This member overrides OnVisibleChanged(EventArgs).

(继承自 WebBrowserBase)
PerformLayout()

强制控件将布局逻辑应用于其所有子控件。Forces the control to apply layout logic to all its child controls.

(继承自 Control)
PerformLayout(Control, String)

强制控件将布局逻辑应用于其所有子控件。Forces the control to apply layout logic to all its child controls.

(继承自 Control)
PointToClient(Point)

将指定屏幕点的位置计算成工作区坐标。Computes the location of the specified screen point into client coordinates.

(继承自 Control)
PointToScreen(Point)

将指定工作区点的位置计算成屏幕坐标。Computes the location of the specified client point into screen coordinates.

(继承自 Control)
PreProcessControlMessage(Message)

在调度键盘或输入消息之前,在消息循环内对它们进行预处理。Preprocesses keyboard or input messages within the message loop before they are dispatched.

(继承自 Control)
PreProcessMessage(Message)

在调度键盘或输入消息之前,在消息循环内对它们进行预处理。Preprocesses keyboard or input messages within the message loop before they are dispatched.

(继承自 WebBrowserBase)
Print()

使用当前打印和页面设置打印当前显示在 WebBrowser 控件中的文档。Prints the document currently displayed in the WebBrowser control using the current print and page settings.

ProcessCmdKey(Message, Keys)

处理命令键。Processes a command key.

(继承自 Control)
ProcessDialogChar(Char)

处理对话框字符。Processes a dialog character.

(继承自 Control)
ProcessDialogKey(Keys)

当 WebBrowser ActiveX 控件不处理对话框键时处理该键。Processes a dialog key if the WebBrowser ActiveX control does not process it.

(继承自 WebBrowserBase)
ProcessKeyEventArgs(Message)

处理键消息并生成适当的控件事件。Processes a key message and generates the appropriate control events.

(继承自 Control)
ProcessKeyMessage(Message)

处理键盘消息。Processes a keyboard message.

(继承自 Control)
ProcessKeyPreview(Message)

预览键盘消息。Previews a keyboard message.

(继承自 Control)
ProcessMnemonic(Char)

处理助记键字符。Processes a mnemonic character.

(继承自 WebBrowserBase)
RaiseDragEvent(Object, DragEventArgs)

引发适当的拖动事件。Raises the appropriate drag event.

(继承自 Control)
RaiseKeyEvent(Object, KeyEventArgs)

引发适当的键事件。Raises the appropriate key event.

(继承自 Control)
RaiseMouseEvent(Object, MouseEventArgs)

引发适当的鼠标事件。Raises the appropriate mouse event.

(继承自 Control)
RaisePaintEvent(Object, PaintEventArgs)

引发适当的绘画事件。Raises the appropriate paint event.

(继承自 Control)
RecreateHandle()

强制为控件重新创建句柄。Forces the re-creation of the handle for the control.

(继承自 Control)
RectangleToClient(Rectangle)

计算指定屏幕矩形的大小和位置(以工作区坐标表示)。Computes the size and location of the specified screen rectangle in client coordinates.

(继承自 Control)
RectangleToScreen(Rectangle)

计算指定工作区矩形的大小和位置(以屏幕坐标表示)。Computes the size and location of the specified client rectangle in screen coordinates.

(继承自 Control)
Refresh()

通过检查服务器获取更新版本,重新加载当前显示在 WebBrowser 控件中的文档。Reloads the document currently displayed in the WebBrowser control by checking the server for an updated version.

Refresh(WebBrowserRefreshOption)

使用指定的刷新选项重新加载当前显示在 WebBrowser 控件中的文档。Reloads the document currently displayed in the WebBrowser control using the specified refresh options.

RescaleConstantsForDpi(Int32, Int32)

发生 DPI 更改时,提供用于重新缩放控件的常数。Provides constants for rescaling the control when a DPI change occurs.

(继承自 Control)
ResetBackColor()

BackColor 属性重置为其默认值。Resets the BackColor property to its default value.

(继承自 Control)
ResetBindings()

使绑定到 BindingSource 的控件重新读取列表中的所有项,并刷新这些项的显示值。Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values.

(继承自 Control)
ResetCursor()

Cursor 属性重置为其默认值。Resets the Cursor property to its default value.

(继承自 Control)
ResetFont()

Font 属性重置为其默认值。Resets the Font property to its default value.

(继承自 Control)
ResetForeColor()

ForeColor 属性重置为其默认值。Resets the ForeColor property to its default value.

(继承自 Control)
ResetImeMode()

ImeMode 属性重置为其默认值。Resets the ImeMode property to its default value.

(继承自 Control)
ResetMouseEventArgs()

重置控件以处理 MouseLeave 事件。Resets the control to handle the MouseLeave event.

(继承自 Control)
ResetRightToLeft()

RightToLeft 属性重置为其默认值。Resets the RightToLeft property to its default value.

(继承自 Control)
ResetText()

Text 属性重置为其默认值 (Empty)。Resets the Text property to its default value (Empty).

(继承自 Control)
ResumeLayout()

恢复正常的布局逻辑。Resumes usual layout logic.

(继承自 Control)
ResumeLayout(Boolean)

恢复正常的布局逻辑,可以选择强制对挂起的布局请求立即进行布局。Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests.

(继承自 Control)
RtlTranslateAlignment(ContentAlignment)

将指定的 ContentAlignment 转换为相应的 ContentAlignment 以支持从右向左的文本。Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text.

(继承自 Control)
RtlTranslateAlignment(HorizontalAlignment)

将指定的 HorizontalAlignment 转换为相应的 HorizontalAlignment 以支持从右向左的文本。Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text.

(继承自 Control)
RtlTranslateAlignment(LeftRightAlignment)

将指定的 LeftRightAlignment 转换为相应的 LeftRightAlignment 以支持从右向左的文本。Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text.

(继承自 Control)
RtlTranslateContent(ContentAlignment)

将指定的 ContentAlignment 转换为相应的 ContentAlignment 以支持从右向左的文本。Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text.

(继承自 Control)
RtlTranslateHorizontal(HorizontalAlignment)

将指定的 HorizontalAlignment 转换为相应的 HorizontalAlignment 以支持从右向左的文本。Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text.

(继承自 Control)
RtlTranslateLeftRight(LeftRightAlignment)

将指定的 LeftRightAlignment 转换为相应的 LeftRightAlignment 以支持从右向左的文本。Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text.

(继承自 Control)
Scale(Single)

缩放控件和任何子控件。Scales the control and any child controls.

(继承自 Control)
Scale(Single, Single)

缩放整个控件和任何子控件。Scales the entire control and any child controls.

(继承自 Control)
Scale(SizeF)

按指定的比例因子缩放控件和所有子控件。Scales the control and all child controls by the specified scaling factor.

(继承自 Control)
ScaleBitmapLogicalToDevice(Bitmap)

发生 DPI 更改时,可以将逻辑位图值缩放到其等效设备单元值。Scales a logical bitmap value to it's equivalent device unit value when a DPI change occurs.

(继承自 Control)
ScaleControl(SizeF, BoundsSpecified)

缩放控件的位置、大小、空白和边距。Scales a control's location, size, padding and margin.

(继承自 Control)
ScaleCore(Single, Single)

此方法与此类无关。This method is not relevant for this class.

(继承自 Control)
Select()

激活控件。Activates the control.

(继承自 Control)
Select(Boolean, Boolean)

激活子控件。Activates a child control. 还可以指定从中选择控件的 Tab 键顺序的方向。Optionally specifies the direction in the tab order to select the control from.

(继承自 Control)
SelectNextControl(Control, Boolean, Boolean, Boolean, Boolean)

激活下一个控件。Activates the next control.

(继承自 Control)
SendToBack()

将控件发送到 Z 顺序的后面。Sends the control to the back of the z-order.

(继承自 Control)
SetAutoSizeMode(AutoSizeMode)

设置一个值,该值指示当启用控件的 AutoSize 属性时控件的行为方式。Sets a value indicating how a control will behave when its AutoSize property is enabled.

(继承自 Control)
SetBounds(Int32, Int32, Int32, Int32)

将控件的边界设置为指定位置和大小。Sets the bounds of the control to the specified location and size.

(继承自 Control)
SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified)

将控件的指定边界设置为指定位置和大小。Sets the specified bounds of the control to the specified location and size.

(继承自 Control)
SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)

执行设置该控件的指定边界的工作。Performs the work of setting the specified bounds of this control.

(继承自 Control)
SetClientSizeCore(Int32, Int32)

设置控件的工作区的大小。Sets the size of the client area of the control.

(继承自 Control)
SetStyle(ControlStyles, Boolean)

将指定的 ControlStyles 标志设置为 truefalseSets a specified ControlStyles flag to either true or false.

(继承自 Control)
SetTopLevel(Boolean)

将控件设置为顶级控件。Sets the control as the top-level control.

(继承自 Control)
SetVisibleCore(Boolean)

将控件设置为指定的可见状态。Sets the control to the specified visible state.

(继承自 Control)
Show()

向用户显示控件。Displays the control to the user.

(继承自 Control)
ShowPageSetupDialog()

打开 Internet Explorer“页面设置”对话框。Opens the Internet Explorer Page Setup dialog box.

ShowPrintDialog()

打开 Internet Explorer 的“打印”对话框,但不设置页眉或页脚值。Opens the Internet Explorer Print dialog box without setting header and footer values.

ShowPrintPreviewDialog()

打开 Internet Explorer 的“打印预览”对话框。Opens the Internet Explorer Print Preview dialog box.

ShowPropertiesDialog()

打开当前文档的 Internet Explorer“属性”对话框。Opens the Internet Explorer Properties dialog box for the current document.

ShowSaveAsDialog()

打开 Internet Explorer 的“保存网页”对话框,如果承载的文档不是 HTML 页,则打开其“保存”对话框。Opens the Internet Explorer Save Web Page dialog box or the Save dialog box of the hosted document if it is not an HTML page.

SizeFromClientSize(Size)

确定整个控件(从控件工作区的高度和宽度起计算)的大小。Determines the size of the entire control from the height and width of its client area.

(继承自 Control)
Stop()

取消所有挂起的导航并停止所有动态页元素(如背景声音和动画)。Cancels any pending navigation and stops any dynamic page elements, such as background sounds and animations.

SuspendLayout()

临时挂起控件的布局逻辑。Temporarily suspends the layout logic for the control.

(继承自 Control)
ToString()

返回包含 Component 的名称的 String(如果有)。Returns a String containing the name of the Component, if any. 不应重写此方法。This method should not be overridden.

(继承自 Component)
Update()

使控件重绘其工作区内的无效区域。Causes the control to redraw the invalidated regions within its client area.

(继承自 Control)
UpdateBounds()

用当前大小和位置更新控件的边界。Updates the bounds of the control with the current size and location.

(继承自 Control)
UpdateBounds(Int32, Int32, Int32, Int32)

用指定大小和位置更新控件的边界。Updates the bounds of the control with the specified size and location.

(继承自 Control)
UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32)

用指定大小、位置和工作区的大小更新控件的边界。Updates the bounds of the control with the specified size, location, and client size.

(继承自 Control)
UpdateStyles()

强制将分配的样式重新应用到控件。Forces the assigned styles to be reapplied to the control.

(继承自 Control)
UpdateZOrder()

按控件的父级的 Z 顺序更新控件。Updates the control in its parent's z-order.

(继承自 Control)
WndProc(Message)

处理 Windows 消息。Processes Windows messages.

事件

AutoSizeChanged

此事件与此类无关。This event is not relevant for this class.

(继承自 Control)
BackColorChanged

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
BackgroundImageChanged

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
BackgroundImageLayoutChanged

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
BindingContextChanged

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
CanGoBackChanged

CanGoBack 属性值更改时发生。Occurs when the CanGoBack property value changes.

CanGoForwardChanged

CanGoForward 属性值更改时发生。Occurs when the CanGoForward property value changes.

CausesValidationChanged

CausesValidation 属性的值更改时发生。Occurs when the value of the CausesValidation property changes.

(继承自 Control)
ChangeUICues

焦点或键盘用户界面 (UI) 提示更改时发生。Occurs when the focus or keyboard user interface (UI) cues change.

(继承自 WebBrowserBase)
Click

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
ClientSizeChanged

ClientSize 属性的值更改时发生。Occurs when the value of the ClientSize property changes.

(继承自 Control)
ContextMenuChanged

ContextMenu 属性的值更改时发生。Occurs when the value of the ContextMenu property changes.

(继承自 Control)
ContextMenuStripChanged

ContextMenuStrip 属性的值更改时发生。Occurs when the value of the ContextMenuStrip property changes.

(继承自 Control)
ControlAdded

在将新控件添加到 Control.ControlCollection 时发生。Occurs when a new control is added to the Control.ControlCollection.

(继承自 Control)
ControlRemoved

在从 Control.ControlCollection 移除控件时发生。Occurs when a control is removed from the Control.ControlCollection.

(继承自 Control)
CursorChanged

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
Disposed

当通过调用 Dispose() 方法释放组件时发生。Occurs when the component is disposed by a call to the Dispose() method.

(继承自 Component)
DockChanged

Dock 属性的值更改时发生。Occurs when the value of the Dock property changes.

(继承自 Control)
DocumentCompleted

WebBrowser 控件完成加载文档时发生。Occurs when the WebBrowser control finishes loading a document.

DocumentTitleChanged

DocumentTitle 属性值更改时发生。Occurs when the DocumentTitle property value changes.

DoubleClick

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
DpiChangedAfterParent

当父控件或窗体的 DPI 更改后,以编程方式更改控件的 DPI 设置时发生。Occurs when the DPI setting for a control is changed programmatically after the DPI of its parent control or form has changed.

(继承自 Control)
DpiChangedBeforeParent

父控件或窗体的 DPI 更改事件发生前,以编程方式更改控件的 DPI 设置时发生。Occurs when the DPI setting for a control is changed programmatically before a DPI change event for its parent control or form has occurred.

(继承自 Control)
DragDrop

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
DragEnter

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
DragLeave

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
DragOver

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
EnabledChanged

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
EncryptionLevelChanged

WebBrowser 控件导航到或离开使用了加密的网站时发生。Occurs when the WebBrowser control navigates to or away from a Web site that uses encryption.

Enter

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
FileDownload

WebBrowser 控件下载文件时发生。Occurs when the WebBrowser control downloads a file.

FontChanged

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
ForeColorChanged

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
GiveFeedback

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
GotFocus

在控件接收焦点时发生。Occurs when the control receives focus.

(继承自 Control)
HandleCreated

在为控件创建句柄时发生。Occurs when a handle is created for the control.

(继承自 Control)
HandleDestroyed

在控件的句柄处于销毁过程中时发生。Occurs when the control's handle is in the process of being destroyed.

(继承自 Control)
HelpRequested

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
ImeModeChanged

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
Invalidated

控件的显示要求重新绘制时发生。Occurs when a control's display requires redrawing.

(继承自 Control)
KeyDown

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
KeyPress

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
KeyUp

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
Layout

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
Leave

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
LocationChanged

Location 属性值更改后发生。Occurs when the Location property value has changed.

(继承自 Control)
LostFocus

在控件失去焦点时发生。Occurs when the control loses focus.

(继承自 Control)
MarginChanged

在控件边距更改时发生。Occurs when the control's margin changes.

(继承自 Control)
MouseCaptureChanged

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
MouseClick

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
MouseDoubleClick

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
MouseDown

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
MouseEnter

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
MouseHover

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
MouseLeave

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
MouseMove

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
MouseUp

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
MouseWheel

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
Move

在移动控件时发生。Occurs when the control is moved.

(继承自 Control)
Navigated

WebBrowser 控件导航到新文档并开始加载该文档时发生。Occurs when the WebBrowser control has navigated to a new document and has begun loading it.

Navigating

WebBrowser 控件导航到新文档之前发生。Occurs before the WebBrowser control navigates to a new document.

NewWindow

在浏览器新窗口打开之前发生。Occurs before a new browser window is opened.

PaddingChanged

Padding 属性的值更改时发生。Occurs when the value of the Padding property changes.

Paint

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
ParentChanged

Parent 属性值更改时发生。Occurs when the Parent property value changes.

(继承自 Control)
PreviewKeyDown

在焦点位于此控件上的情况下,当有按键动作时发生(在 KeyDown 事件之前发生)。Occurs before the KeyDown event when a key is pressed while focus is on this control.

(继承自 Control)
ProgressChanged

WebBrowser 控件已更新有关要导航到的文档的下载进度的信息时发生。Occurs when the WebBrowser control has updated information on the download progress of a document it is navigating to.

QueryAccessibilityHelp

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
QueryContinueDrag

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
RegionChanged

Region 属性的值更改时发生。Occurs when the value of the Region property changes.

(继承自 Control)
Resize

在调整控件大小时发生。Occurs when the control is resized.

(继承自 Control)
RightToLeftChanged

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
SizeChanged

Size 属性值更改时发生。Occurs when the Size property value changes.

(继承自 Control)
StatusTextChanged

StatusText 属性值更改时发生。Occurs when the StatusText property value changes.

StyleChanged

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
SystemColorsChanged

系统颜色更改时发生。Occurs when the system colors change.

(继承自 Control)
TabIndexChanged

TabIndex 属性值更改时发生。Occurs when the TabIndex property value changes.

(继承自 Control)
TabStopChanged

TabStop 属性值更改时发生。Occurs when the TabStop property value changes.

(继承自 Control)
TextChanged

此控件不支持此事件。This event is not supported by this control.

(继承自 WebBrowserBase)
Validated

在控件完成验证时发生。Occurs when the control is finished validating.

(继承自 Control)
Validating

在控件验证时发生。Occurs when the control is validating.

(继承自 Control)
VisibleChanged

Visible 属性值更改时发生。Occurs when the Visible property value changes.

(继承自 Control)

显式界面实现

IDropTarget.OnDragDrop(DragEventArgs)

引发 DragDrop 事件。Raises the DragDrop event.

(继承自 Control)
IDropTarget.OnDragEnter(DragEventArgs)

引发 DragEnter 事件。Raises the DragEnter event.

(继承自 Control)
IDropTarget.OnDragLeave(EventArgs)

引发 DragLeave 事件。Raises the DragLeave event.

(继承自 Control)
IDropTarget.OnDragOver(DragEventArgs)

引发 DragOver 事件。Raises the DragOver event.

(继承自 Control)

安全性

SecurityPermission
用于继承此控件的派生类。for derived classes to inherit this control. 要求值: InheritanceDemand;命名权限集: FullTrustDemand value: InheritanceDemand; Named Permission Sets: FullTrust.

适用于

另请参阅