CheckBoxArray.Resize 事件

定义

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

public:
 event EventHandler ^ Resize;
public event EventHandler Resize;
member this.Resize : EventHandler 
Public Custom Event Resize As EventHandler 
Public Event Resize As EventHandler 

事件类型

EventHandler

注解

若要确定已 Size 调整大小的控件的,可以将 sender 数据的参数强制转换为, EventArgs ControlSize Height 分别) (或属性和 Width 属性。To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and get it's Size property (or Height and Width properties individually).

若要处理自定义布局,请使用 Layout 事件而不是 Resize 事件。To handle custom layouts, use the Layout event instead of the Resize event. Layout事件是为了响应事件而引发的 Resize ,但也用于响应影响控件布局的其他更改。The Layout event is raised in response to a Resize event, but also in response to other changes that affect the layout of the control.

有关如何处理事件的详细信息,请参阅 处理和引发事件For more information about how to handle events, see Handling and Raising Events.

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

适用于

另请参阅