订单的事件“Form.Load”,“Form.Shown”,并在Windows窗体“Form.Activated” [英] Order of events 'Form.Load', 'Form.Shown' and 'Form.Activated' in Windows Forms
问题描述
之间的形式 Form.Load 的区别是什么, Form.Shown 和<一href="http://msdn.microsoft.com/en-us/library/system.windows.forms.form.activated.aspx">Form.Activated事件?什么是他们被解雇的顺序?
What is the difference between form Form.Load, Form.Shown and Form.Activated events? What is the order in which they are fired?
推荐答案
此外,Form.Activate事件可以发射多次。例如,如果您从表单打开一个消息框,当您单击消息框的任何按钮,返回到形式,Form.Activate被激发。这同样适用于任何其它对话框如FileOpenDialog
Moreover, Form.Activate event can be fired multiple times. For example, if you open a message box from your form, and when you click on the messagebox's any button, and return back to the form, Form.Activate is fired. The same is true for any other dialog box such as FileOpenDialog.
这篇关于订单的事件“Form.Load”,“Form.Shown”,并在Windows窗体“Form.Activated”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!