Form 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示构成应用程序用户界面的窗口或对话框。
public ref class Form : System::Windows::Forms::ContainerControl
public class Form : System.Windows.Forms.ContainerControl
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public class Form : System.Windows.Forms.ContainerControl
type Form = class
inherit ContainerControl
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Form = class
inherit ContainerControl
Public Class Form
Inherits ContainerControl
- 继承
- 派生
- 属性
示例
以下示例创建一个新实例 Form ,并调用 ShowDialog 该方法以对话框形式显示窗体。 该示例将窗体的外观和功能更改为对话框的 FormBorderStyle、AcceptButtonCancelButton、、MinimizeBox和MaximizeBoxStartPosition属性。 该示例还使用 Add 窗体 Controls 集合的方法添加两 Button 个控件。 该示例使用 HelpButton 属性在对话框的标题栏中显示帮助按钮。
public:
void CreateMyForm()
{
// Create a new instance of the form.
Form^ form1 = gcnew Form;
// Create two buttons to use as the accept and cancel buttons.
Button^ button1 = gcnew Button;
Button^ button2 = gcnew Button;
// Set the text of button1 to "OK".
button1->Text = "OK";
// Set the position of the button on the form.
button1->Location = Point(10,10);
// Set the text of button2 to "Cancel".
button2->Text = "Cancel";
// Set the position of the button based on the location of button1.
button2->Location =
Point( button1->Left, button1->Height + button1->Top + 10 );
// Set the caption bar text of the form.
form1->Text = "My Dialog Box";
// Display a help button on the form.
form1->HelpButton = true;
// Define the border style of the form to a dialog box.
form1->FormBorderStyle = ::FormBorderStyle::FixedDialog;
// Set the MaximizeBox to false to remove the maximize box.
form1->MaximizeBox = false;
// Set the MinimizeBox to false to remove the minimize box.
form1->MinimizeBox = false;
// Set the accept button of the form to button1.
form1->AcceptButton = button1;
// Set the cancel button of the form to button2.
form1->CancelButton = button2;
// Set the start position of the form to the center of the screen.
form1->StartPosition = FormStartPosition::CenterScreen;
// Add button1 to the form.
form1->Controls->Add( button1 );
// Add button2 to the form.
form1->Controls->Add( button2 );
// Display the form as a modal dialog box.
form1->ShowDialog();
}
public void CreateMyForm()
{
// Create a new instance of the form.
Form form1 = new Form();
// Create two buttons to use as the accept and cancel buttons.
Button button1 = new Button ();
Button button2 = new Button ();
// Set the text of button1 to "OK".
button1.Text = "OK";
// Set the position of the button on the form.
button1.Location = new Point (10, 10);
// Set the text of button2 to "Cancel".
button2.Text = "Cancel";
// Set the position of the button based on the location of button1.
button2.Location
= new Point (button1.Left, button1.Height + button1.Top + 10);
// Set the caption bar text of the form.
form1.Text = "My Dialog Box";
// Display a help button on the form.
form1.HelpButton = true;
// Define the border style of the form to a dialog box.
form1.FormBorderStyle = FormBorderStyle.FixedDialog;
// Set the MaximizeBox to false to remove the maximize box.
form1.MaximizeBox = false;
// Set the MinimizeBox to false to remove the minimize box.
form1.MinimizeBox = false;
// Set the accept button of the form to button1.
form1.AcceptButton = button1;
// Set the cancel button of the form to button2.
form1.CancelButton = button2;
// Set the start position of the form to the center of the screen.
form1.StartPosition = FormStartPosition.CenterScreen;
// Add button1 to the form.
form1.Controls.Add(button1);
// Add button2 to the form.
form1.Controls.Add(button2);
// Display the form as a modal dialog box.
form1.ShowDialog();
}
Public Sub CreateMyForm()
' Create a new instance of the form.
Dim form1 As New Form()
' Create two buttons to use as the accept and cancel buttons.
Dim button1 As New Button()
Dim button2 As New Button()
' Set the text of button1 to "OK".
button1.Text = "OK"
' Set the position of the button on the form.
button1.Location = New Point(10, 10)
' Set the text of button2 to "Cancel".
button2.Text = "Cancel"
' Set the position of the button based on the location of button1.
button2.Location = _
New Point(button1.Left, button1.Height + button1.Top + 10)
' Set the caption bar text of the form.
form1.Text = "My Dialog Box"
' Display a help button on the form.
form1.HelpButton = True
' Define the border style of the form to a dialog box.
form1.FormBorderStyle = FormBorderStyle.FixedDialog
' Set the MaximizeBox to false to remove the maximize box.
form1.MaximizeBox = False
' Set the MinimizeBox to false to remove the minimize box.
form1.MinimizeBox = False
' Set the accept button of the form to button1.
form1.AcceptButton = button1
' Set the cancel button of the form to button2.
form1.CancelButton = button2
' Set the start position of the form to the center of the screen.
form1.StartPosition = FormStartPosition.CenterScreen
' Add button1 to the form.
form1.Controls.Add(button1)
' Add button2 to the form.
form1.Controls.Add(button2)
' Display the form as a modal dialog box.
form1.ShowDialog()
End Sub
注解
A Form 是应用程序中显示的任何窗口的表示形式。 该 Form 类可用于创建标准窗口、工具、无边框窗口和浮动窗口。 还可以使用该 Form 类创建模式窗口,例如对话框。 一种特殊的窗体,多文档界面(MDI)窗体,可以包含称为 MDI 子窗体的其他窗体。 通过将属性设置为 IsMdiContainertrue.,创建 MDI 窗体。 通过将属性设置为 MdiParent 包含子窗体的 MDI 父窗体来创建 MDI 子窗体。
使用类中 Form 可用的属性,可以确定要创建的窗口或对话框的外观、大小、颜色和窗口管理功能。 该 Text 属性允许你在标题栏中指定窗口的标题。 通过 Size 和 DesktopLocation 属性,可以在窗口显示时定义窗口的大小和位置。 可以使用 ForeColor 颜色属性更改窗体上所有控件的默认前景色。 使用FormBorderStyle和MinimizeBoxMaximizeBox属性可以控制窗体在运行时是最小化、最大化还是调整大小。
除了属性,还可以使用类的方法操作窗体。 例如,可以使用该方法 ShowDialog 将窗体显示为模式对话框。 可以使用该方法 SetDesktopLocation 将窗体放置在桌面上。
类的事件 Form 允许你响应对窗体上执行的操作做出响应。 可以使用 Activated 该事件执行操作,例如在激活窗体时更新窗体控件中显示的数据。
通过在类中放置调用 Main 的方法,可以将窗体用作应用程序中的起始类。 在 Main 方法中添加用于创建和显示窗体的代码。 还需要将 STAThread 属性添加到 Main 方法,以便窗体运行。 关闭起始窗体时,应用程序也会关闭。
如果将属性设置为Enabledfalse在可见之前Form(例如,在 visual Studio 设计器Microsoft中设置为 Enabled false),将保持启用最小化、最大化、关闭和系统按钮。 如果设置为Enabledfalse可见后Form(例如,发生 Load 事件时),则会禁用这些按钮。
构造函数
| 名称 | 说明 |
|---|---|
| Form() |
初始化 Form 类的新实例。 |
字段
| 名称 | 说明 |
|---|---|
| ScrollStateAutoScrolling |
确定属性的值 AutoScroll 。 (继承自 ScrollableControl) |
| ScrollStateFullDrag |
确定用户是否已启用全屏拖动。 (继承自 ScrollableControl) |
| ScrollStateHScrollVisible |
确定属性的值 HScroll 是否设置为 |
| ScrollStateUserHasScrolled |
确定用户是否已滚动浏览控件 ScrollableControl 。 (继承自 ScrollableControl) |
| ScrollStateVScrollVisible |
确定属性的值 VScroll 是否设置为 |
属性
| 名称 | 说明 |
|---|---|
| AcceptButton |
获取或设置用户按下 Enter 键时单击的窗体上的按钮。 |
| AccessibilityObject |
AccessibleObject获取分配给控件的控件。 (继承自 Control) |
| AccessibleDefaultActionDescription |
获取或设置控件的默认操作说明,以供辅助功能客户端应用程序使用。 (继承自 Control) |
| AccessibleDescription |
获取或设置辅助功能客户端应用程序使用的控件的说明。 (继承自 Control) |
| AccessibleName |
获取或设置辅助功能客户端应用程序使用的控件的名称。 (继承自 Control) |
| AccessibleRole |
获取或设置控件的可访问角色。 (继承自 Control) |
| ActiveControl |
获取或设置容器控件上的活动控件。 (继承自 ContainerControl) |
| ActiveForm |
获取此应用程序的当前活动窗体。 |
| ActiveMdiChild |
获取当前活动的多文档界面 (MDI) 子窗口。 |
| AllowDrop |
获取或设置一个值,该值指示控件是否可以接受用户拖动到其中的数据。 (继承自 Control) |
| AllowTransparency |
获取或设置一个值,该值指示是否可以调整窗体的不透明度。 |
| Anchor |
获取或设置控件绑定到的容器的边缘,并确定控件的父级如何调整其大小。 (继承自 Control) |
| AutoScale |
已过时.
已过时.
获取或设置一个值,该值指示窗体是否调整其大小以适应窗体上使用的字体的高度并缩放其控件。 |
| AutoScaleBaseSize |
获取或设置用于窗体自动缩放的基本大小。 |
| AutoScaleDimensions |
获取或设置控件设计为的维度。 (继承自 ContainerControl) |
| AutoScaleFactor |
获取当前和设计时自动缩放维度之间的缩放因子。 (继承自 ContainerControl) |
| AutoScaleMode |
获取或设置控件的自动缩放模式。 (继承自 ContainerControl) |
| AutoScroll |
获取或设置一个值,该值指示窗体是否启用自动注册。 |
| AutoScrollMargin |
获取或设置自动滚动边距的大小。 (继承自 ScrollableControl) |
| AutoScrollMinSize |
获取或设置自动滚动的最小大小。 (继承自 ScrollableControl) |
| AutoScrollOffset |
获取或设置此控件滚动到的位置 ScrollControlIntoView(Control)。 (继承自 Control) |
| AutoScrollPosition |
获取或设置自动滚动位置的位置。 (继承自 ScrollableControl) |
| AutoSize |
根据设置调整窗体的大小 AutoSizeMode。 |
| AutoSizeMode |
获取或设置窗体自动调整自身大小的模式。 |
| AutoValidate |
获取或设置一个值,该值指示焦点更改时是否会自动验证此容器中的控件。 |
| BackColor |
获取或设置控件的背景色。 |
| BackgroundImage |
获取或设置控件中显示的背景图像。 (继承自 Control) |
| BackgroundImageLayout |
获取或设置枚举中 ImageLayout 定义的背景图像布局。 (继承自 Control) |
| BindingContext |
获取或设置 BindingContext 控件。 (继承自 ContainerControl) |
| Bottom |
获取控件的下边缘与其容器工作区的上边缘之间的距离(以像素为单位)。 (继承自 Control) |
| Bounds |
获取或设置控件的大小和位置,包括其相对于父控件的非client 元素(以像素为单位)。 (继承自 Control) |
| CancelButton |
获取或设置当用户按下 ESC 键时单击的按钮控件。 |
| CanEnableIme |
获取一个值,该值指示属性是否可以 ImeMode 设置为活动值,以启用 IME 支持。 (继承自 ContainerControl) |
| CanFocus |
获取一个值,该值指示控件是否可以接收焦点。 (继承自 Control) |
| CanRaiseEvents |
确定是否可以在控件上引发事件。 (继承自 Control) |
| CanSelect |
获取一个值,该值指示是否可以选择控件。 (继承自 Control) |
| Capture |
获取或设置一个值,该值指示控件是否已捕获鼠标。 (继承自 Control) |
| CausesValidation |
获取或设置一个值,该值指示控件是否导致验证在收到焦点时需要验证的任何控件上执行。 (继承自 Control) |
| ClientRectangle |
获取表示控件工作区的矩形。 (继承自 Control) |
| ClientSize |
获取或设置窗体的工作区的大小。 |
| CompanyName |
获取包含控件的应用程序的公司或创建者的名称。 (继承自 Control) |
| Container |
IContainer获取包含 .Component (继承自 Component) |
| ContainsFocus |
获取一个值,该值指示控件或其子控件之一当前是否具有输入焦点。 (继承自 Control) |
| ContextMenu |
已过时.
获取或设置与控件关联的快捷菜单。 (继承自 Control) |
| ContextMenuStrip |
获取或设置 ContextMenuStrip 与此控件关联的值。 (继承自 Control) |
| ControlBox |
获取或设置一个值,该值指示控件框是否显示在窗体的标题栏中。 |
| Controls |
获取控件中包含的控件的集合。 (继承自 Control) |
| Created |
获取一个值,该值指示是否已创建控件。 (继承自 Control) |
| CreateParams |
获取创建控件句柄时所需的创建参数。 |
| CurrentAutoScaleDimensions |
获取屏幕的当前运行时维度。 (继承自 ContainerControl) |
| Cursor |
获取或设置鼠标指针位于控件上时显示的光标。 (继承自 Control) |
| DataBindings |
获取控件的数据绑定。 (继承自 Control) |
| DataContext |
获取或设置用于数据绑定的数据上下文。 这是一个环境属性。 (继承自 Control) |
| DefaultCursor |
获取或设置控件的默认游标。 (继承自 Control) |
| DefaultImeMode |
获取控件支持的默认输入法编辑器 (IME) 模式。 |
| DefaultMargin |
获取默认情况下在控件之间指定的空间(以像素为单位)。 (继承自 Control) |
| DefaultMaximumSize |
获取指定为控件的默认最大大小的长度和高度(以像素为单位)。 (继承自 Control) |
| DefaultMinimumSize |
获取指定为控件的默认最小大小的长度和高度(以像素为单位)。 (继承自 Control) |
| DefaultPadding |
获取控件内容的默认内部间距(以像素为单位)。 (继承自 Control) |
| DefaultSize |
获取控件的默认大小。 |
| DesignMode |
获取一个值,该值指示当前是否 Component 处于设计模式。 (继承自 Component) |
| DesktopBounds |
获取或设置 Windows 桌面上窗体的大小和位置。 |
| DesktopLocation |
获取或设置窗体在 Windows 桌面上的位置。 |
| DeviceDpi |
获取当前显示控件的显示设备的 DPI 值。 (继承自 Control) |
| DialogResult |
获取或设置窗体的对话框结果。 |
| DisplayRectangle |
获取表示控件的虚拟显示区域的矩形。 (继承自 ScrollableControl) |
| Disposing |
获取一个值,该值指示基 Control 类是否正在处理。 (继承自 Control) |
| Dock |
获取或设置哪些控件边框停靠到其父控件,并确定控件如何调整其父级的大小。 (继承自 Control) |
| DockPadding |
获取控件的所有边缘的停靠填充设置。 (继承自 ScrollableControl) |
| DoubleBuffered |
获取或设置一个值,该值指示此控件是否应使用辅助缓冲区重新绘制其表面以减少或防止闪烁。 (继承自 Control) |
| Enabled |
获取或设置一个值,该值指示控件是否可以响应用户交互。 (继承自 Control) |
| Events |
获取附加到此 Component对象的事件处理程序的列表。 (继承自 Component) |
| Focused |
获取一个值,该值指示控件是否具有输入焦点。 (继承自 Control) |
| Font |
获取或设置控件显示的文本的字体。 (继承自 Control) |
| FontHeight |
获取或设置控件字体的高度。 (继承自 Control) |
| ForeColor |
获取或设置控件的前景色。 (继承自 Control) |
| FormBorderColor |
设置或获取窗体的边框颜色。 |
| FormBorderStyle |
获取或设置窗体的边框样式。 |
| FormCaptionBackColor |
设置或获取窗体的标题栏后退颜色(标题后退颜色)。 |
| FormCaptionTextColor |
设置或获取窗体的标题栏文本颜色(窗口标题文本颜色)。 |
| FormCornerPreference |
使用 FormCornerPreference 枚举设置或获取窗体角的舍入样式。 |
| FormScreenCaptureMode |
表示构成应用程序用户界面的窗口或对话框。 |
| Handle |
获取控件绑定到的窗口句柄。 (继承自 Control) |
| HasChildren |
获取一个值,该值指示控件是否包含一个或多个子控件。 (继承自 Control) |
| Height |
获取或设置控件的高度。 (继承自 Control) |
| HelpButton |
获取或设置一个值,该值指示是否应在窗体的标题框中显示帮助按钮。 |
| HorizontalScroll |
获取与水平滚动条关联的特征。 (继承自 ScrollableControl) |
| HScroll |
获取或设置一个值,该值指示水平滚动条是否可见。 (继承自 ScrollableControl) |
| Icon |
获取或设置窗体的图标。 |
| ImeMode |
获取或设置控件的输入法编辑器 (IME) 模式。 (继承自 Control) |
| ImeModeBase |
获取或设置控件的 IME 模式。 (继承自 Control) |
| InvokeRequired |
获取一个值,该值指示调用方在对控件进行方法调用时是否必须调用调用方法,因为调用方与创建控件的线程不同。 (继承自 Control) |
| IsAccessible |
获取或设置一个值,该值指示控件是否对辅助功能应用程序可见。 (继承自 Control) |
| IsAncestorSiteInDesignMode |
指示此控件的上级位置之一是否位于 DesignMode 中。 此属性为只读。 (继承自 Control) |
| IsDisposed |
获取一个值,该值指示控件是否已释放。 (继承自 Control) |
| IsHandleCreated |
获取一个值,该值指示控件是否具有与之关联的句柄。 (继承自 Control) |
| IsMdiChild |
获取一个值,该值指示窗体是否为多文档接口 (MDI) 子窗体。 |
| IsMdiContainer |
获取或设置一个值,该值指示窗体是否为多文档接口 (MDI) 子窗体的容器。 |
| IsMirrored |
获取一个值,该值指示控件是否镜像。 (继承自 Control) |
| IsRestrictedWindow |
获取一个值,该值指示窗体是否可以在没有限制的情况下使用所有窗口和用户输入事件。 |
| KeyPreview |
获取或设置一个值,该值指示窗体在将事件传递到具有焦点的控件之前是否接收键事件。 |
| LayoutEngine |
获取控件布局引擎的缓存实例。 (继承自 Control) |
| Left |
获取或设置控件左边缘与其容器工作区的左边缘之间的距离(以像素为单位)。 (继承自 Control) |
| Location | |
| Location |
获取或设置控件左上角相对于其容器左上角的坐标。 (继承自 Control) |
| MainMenuStrip |
获取或设置窗体的主菜单容器。 |
| Margin |
获取或设置控件之间的间距。 |
| MaximizeBox |
获取或设置一个值,该值指示是否在窗体的标题栏中显示 最大化 按钮。 |
| MaximizedBounds |
获取或设置最大化窗体时窗体的大小。 |
| MaximumSize |
获取窗体可调整大小的最大大小。 |
| MdiChildren |
获取表示多文档接口 (MDI) 子窗体的窗体数组,这些子窗体为此窗体的父级。 |
| MdiChildrenMinimizedAnchorBottom |
获取或设置最小化 MDI 子级的定位。 |
| MdiParent |
获取或设置此窗体的当前多文档界面 (MDI) 父形式。 |
| Menu |
已过时.
获取或设置 MainMenu 窗体中显示的值。 |
| MergedMenu |
已过时.
获取窗体的合并菜单。 |
| MinimizeBox |
获取或设置一个值,该值指示 “最小化 ”按钮是否显示在窗体的标题栏中。 |
| MinimumSize |
获取或设置窗体可调整到的最小大小。 |
| Modal |
获取一个值,该值指示此窗体是否以模式显示。 |
| Name |
获取或设置控件的名称。 (继承自 Control) |
| Opacity |
获取或设置窗体的不透明度级别。 |
| OwnedForms |
获取表示此窗体拥有的所有窗体的对象数组 Form 。 |
| Owner |
获取或设置拥有此窗体的窗体。 |
| Padding |
获取或设置控件中的填充。 (继承自 Control) |
| Parent |
获取或设置控件的父容器。 (继承自 Control) |
| ParentForm |
获取容器控件分配给的窗体。 (继承自 ContainerControl) |
| PreferredSize |
获取控件可以容纳到的矩形区域的大小。 (继承自 Control) |
| ProductName |
获取包含控件的程序集的产品名称。 (继承自 Control) |
| ProductVersion |
获取包含控件的程序集的版本。 (继承自 Control) |
| RecreatingHandle |
获取一个值,该值指示控件当前是否正在重新创建其句柄。 (继承自 Control) |
| Region |
获取或设置与控件关联的窗口区域。 (继承自 Control) |
| RenderRightToLeft |
已过时.
已过时.
此属性现已过时。 (继承自 Control) |
| ResizeRedraw |
获取或设置一个值,该值指示控件在调整大小时是否重新绘制自身。 (继承自 Control) |
| RestoreBounds |
获取窗体处于正常窗口状态的位置和大小。 |
| Right |
获取控件右边缘与其容器工作区的左边缘之间的距离(以像素为单位)。 (继承自 Control) |
| RightToLeft |
获取或设置一个值,该值指示控件的元素是否对齐以支持使用从右到左字体的区域设置。 (继承自 Control) |
| RightToLeftLayout |
获取或设置一个值,该值指示是否打开从右到左的镜像位置。 |
| ScaleChildren |
获取一个值,该值确定子控件的缩放。 (继承自 Control) |
| ShowFocusCues |
获取一个值,该值指示控件是否应显示焦点矩形。 (继承自 Control) |
| ShowIcon |
获取或设置一个值,该值指示是否在窗体的标题栏中显示图标。 |
| ShowInTaskbar |
获取或设置一个值,该值指示窗体是否显示在 Windows 任务栏中。 |
| ShowKeyboardCues |
获取一个值,该值指示用户界面是否处于适当的状态以显示或隐藏键盘加速器。 (继承自 Control) |
| ShowWithoutActivation |
获取一个值,该值指示是否在显示窗口时激活窗口。 |
| Site |
获取或设置控件的站点。 (继承自 Control) |
| Size |
获取或设置窗体的大小。 |
| SizeGripStyle |
获取或设置要显示在窗体右下角的大小手柄的样式。 |
| StartPosition |
获取或设置窗体在运行时的起始位置。 |
| TabIndex |
获取或设置控件在其容器中的 Tab 键顺序。 |
| TabStop |
获取或设置一个值,该值指示用户是否可以使用 TAB 键向此控件提供焦点。 |
| TabStop |
获取或设置一个值,该值指示用户是否可以使用 TAB 键向此控件提供焦点。 (继承自 Control) |
| Tag |
获取或设置包含有关控件的数据的对象。 (继承自 Control) |
| Text |
获取或设置与此控件关联的文本。 |
| Text |
获取或设置与此控件关联的文本。 (继承自 Control) |
| Top |
获取或设置控件上边缘与其容器工作区上边缘之间的距离(以像素为单位)。 (继承自 Control) |
| TopLevel |
获取或设置一个值,该值指示是否将窗体显示为顶级窗口。 |
| TopLevelControl |
获取其他 Windows 窗体控件未父控件的父控件。 通常,这是控件包含在的最外层 Form 。 (继承自 Control) |
| TopMost |
获取或设置一个值,该值指示窗体是否应显示为最顶层的窗体。 |
| TransparencyKey |
获取或设置表示窗体透明区域的颜色。 |
| UseWaitCursor |
获取或设置一个值,该值指示是否对当前控件和所有子控件使用等待游标。 (继承自 Control) |
| VerticalScroll |
获取与垂直滚动条关联的特征。 (继承自 ScrollableControl) |
| Visible |
获取或设置一个值,该值指示是否显示控件及其所有子控件。 (继承自 Control) |
| VScroll |
获取或设置一个值,该值指示垂直滚动条是否可见。 (继承自 ScrollableControl) |
| Width |
获取或设置控件的宽度。 (继承自 Control) |
| WindowState |
获取或设置一个值,该值指示窗体是最小化、最大化还是正常。 |
| WindowTarget |
此属性与此类无关。 (继承自 Control) |
方法
活动
显式接口实现
| 名称 | 说明 |
|---|---|
| IContainerControl.ActivateControl(Control) |
激活指定的控件。 (继承自 ContainerControl) |
| IDropTarget.OnDragDrop(DragEventArgs) |
引发 DragDrop 事件。 (继承自 Control) |
| IDropTarget.OnDragEnter(DragEventArgs) |
引发 DragEnter 事件。 (继承自 Control) |
| IDropTarget.OnDragLeave(EventArgs) |
引发 DragLeave 事件。 (继承自 Control) |
| IDropTarget.OnDragOver(DragEventArgs) |
引发 DragOver 事件。 (继承自 Control) |