How to know if a form is shown as dialog

前端 未结 1 1767
失恋的感觉
失恋的感觉 2021-01-17 10:01

Is there is already some property that I could use such as:

if (this.IsDialog)
{
    DialogResult = ...;
}
else
{
    //do something else
}

相关标签:
1条回答
  • 2021-01-17 10:09

    You can check to see if this.Modal is true.

    0 讨论(0)
提交回复
热议问题