Form.ResizeEnd Form.ResizeEnd Form.ResizeEnd Form.ResizeEnd Event

定义

窗体退出大小调整模式时发生。Occurs when a form exits resizing mode.

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

示例

下面的代码示例演示如何将此成员。The following code example demonstrates the use of this member. 在示例中,事件处理程序报告的匹配项ResizeEnd事件。In the example, an event handler reports on the occurrence of the ResizeEnd event. 此报告可帮助您了解事件发生的并可以帮助您进行调试。This report helps you to learn when the event occurs and can assist you in debugging. 若要报告或频繁发生的事件上多个事件,请考虑更换MessageBox.ShowConsole.WriteLine或将消息附加到多行TextBoxTo report on multiple events or on events that occur frequently, consider replacing MessageBox.Show with Console.WriteLine or appending the message to a multiline TextBox.

若要运行此代码示例,请将其粘贴到包含类型的实例的项目Form名为Form1To run the example code, paste it into a project that contains an instance of type Form named Form1. 然后,确保事件处理程序相关联ResizeEnd事件。Then ensure that the event handler is associated with the ResizeEnd event.

private void Form1_ResizeEnd(Object sender, EventArgs e) {

   MessageBox.Show("You are in the Form.ResizeEnd event.");

}
Private Sub Form1_ResizeEnd(sender as Object, e as EventArgs) _ 
     Handles Form1.ResizeEnd

   MessageBox.Show("You are in the Form.ResizeEnd event.")

End Sub

注解

ResizeEnd用户完成调整大小操作窗体中,通常通过拖动其中一个边框或大小调整手柄位于右下角的窗体,然后将其释放时引发事件。The ResizeEnd event is raised when the user finishes resizing a form, typically by dragging one of the borders or the sizing grip located on the lower-right corner of the form, and then releasing it. 有关在调整操作的详细信息,请参阅ResizeBegin事件。For more information about the resizing operation, see the ResizeBegin event.

ResizeEnd之后用户移动窗体中,通常通过单击和拖动在标题栏上,也会生成事件。The ResizeEnd event is also generated after the user moves a form, typically by clicking and dragging on the caption bar. 此事件不由生成以编程方式操作的窗体,例如通过更改SizeLocation属性。This event is not generated by programmatic manipulation of the form, for example by changing the Size or Location properties.

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

适用于

另请参阅