码迷,mamicode.com
首页 > 其他好文 > 详细

Form.ShowDialog和Form.DialogResult

时间:2015-02-27 16:56:01      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:

The dialog result of a form is the value that is returned from the form when it is displayed as a modal dialog box.

If the form is displayed as a dialog box, setting this property with a value from the DialogResult enumeration sets the value of the dialog box result for the form, hides the modal dialog box, and returns control to the calling form.

 

把一个窗体以showdialog的方式显示出来之后,点击了窗体上的一个按钮后,系统会自动将按钮的dialogresult属性赋值给窗体的属性

This property is typically set by the DialogResult property of a Button control on the form.

When the user clicks the Button control, the value assigned to the DialogResult property of the Button is assigned to the DialogResult property of the form.

Form.ShowDialog和Form.DialogResult

标签:

原文地址:http://www.cnblogs.com/chucklu/p/4303449.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!