设置或获取窗体的对话框结果

命名空间:System.Windows.Forms
程序集:System.Windows.Forms(在 system.windows.forms.dll 中)

 

namespace System.Windows.Forms
{
// 摘要:
// Specifies identifiers to indicate the return value of a dialog box.
[ComVisible(true)]
public enum DialogResult
{
// 摘要:
// Nothing is returned from the dialog box. This means that the modal dialog
// continues running.
None = 0,
//
// 摘要:
// The dialog box return value is OK (usually sent from a button labeled OK).
OK = 1,
//
// 摘要:
// The dialog box return value is Cancel (usually sent from a button labeled
// Cancel).
Cancel = 2,
//
// 摘要:
// The dialog box return value is Abort (usually sent from a button labeled
// Abort).
Abort = 3,
//
// 摘要:
// The dialog box return value is Retry (usually sent from a button labeled
// Retry).
Retry = 4,
//
// 摘要:
// The dialog box return value is Ignore (usually sent from a button labeled
// Ignore).
Ignore = 5,
//
// 摘要:
// The dialog box return value is Yes (usually sent from a button labeled Yes).
Yes = 6,
//
// 摘要:
// The dialog box return value is No (usually sent from a button labeled No).
No = 7,
}

MSDN文档

 

 

相关文章:

  • 2022-12-23
  • 2021-08-19
  • 2021-05-13
  • 2021-10-23
  • 2022-01-16
  • 2022-01-08
  • 2022-02-11
  • 2022-12-23
猜你喜欢
  • 2021-08-09
  • 2022-12-23
  • 2021-05-08
  • 2022-12-23
  • 2022-12-23
  • 2021-05-06
  • 2021-08-14
相关资源
相似解决方案