if ((MessageBox.Show("確定要關閉嗎﹖此次輸入數據將會丟失﹗", "確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) ==
2013-07-13 10:15
260 查看
if ((MessageBox.Show("確定要關閉嗎﹖此次輸入數據將會丟失﹗", "確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes))
e.Cancel = false;
else
e.Cancel = true;
e.Cancel = false;
else
e.Cancel = true;
相关文章推荐
- show a MessageBox with a "Don't show this message again"-Checkbox?
- JOptionPane.showMessageDialog(null," ")中的null 含义
- Adobe Form, using Signature Field, the signed PDF show warning: "Miscellaneous Change".
- RStudio: Warning message: Setting LC_CTYPE failed, using "C" 浅析
- How to disable the warning message "File is probably not DOS format
- 为什么我的 app:actionViewClass="android.widget.SearchView"和app:showAsAction="ifRoom|collapseActionView"才有
- Android emulator 的控制按钮不能使用并显示 "hardware buttons not enabled in avd"
- Fixing "perl: warning: Setting locale failed."解决
- Expected top-level statement (e.g. "message") 解决方案
- zz"WARNING: terminal is not fully functional" and pro blems with vi
- warning: "_POSIX_C_SOURCE" redefined
- 利用handler发送消息报:"This message is already in use"解决办法
- Mysql的错误,待解决[已解决]Data source rejected establishment of connection message from server: "Too many connections";
- 使用WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED, activity在锁屏界面"闪退"的问题修改
- if __name__ == "__main__"
- error c2664:"MessageBoxW":不能将参数2从“const char[15]”转换为“LPCWSTR”与指向的类型无关
- Server Error in '/' Application. Access to the Path Is Denied" error message appears
- hive -e "show tables"提示cannot recognize input near 'show' '<EOF>' '<EOF>' in ddl statement
- Can I get rid of the "This page contains both secure and nonsecure items" warning?
- "Warning: Duplicate directory name" in Matlab R2007a