ToolBarArray.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 資料的參數轉換 EventArgsControl ,並將其 Size 屬性 (或 HeightWidth 屬性個別) 。To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and get its 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.

適用於

另請參閱