在MSDN中我发现CloseReason.UserClosing用户已经决定关闭表单,但我想单击X按钮或单击关闭按钮是相同的.那么如何在我的代码中区分这两者呢?
CloseReason.UserClosing
谢谢大家.
.net c# winforms
.net ×1
c# ×1
winforms ×1