System.Windows.Forms.MessageBox.Show("You have made changes on this page. What would you like to do?", "Message from webpage", System.Windows.Forms.MessageBoxButtons.YesNoCancel, System.Windows.Forms.MessageBoxIcon.Warning, System.Windows.Forms.MessageBoxDefaultButton.Button1);这一段是实现弹出框的代码
但是,我想把Dialog中三个按钮的文本替换成"Save","Discard","Cancel", 请问如何实现啊!
还有就是,在弹出框弹出来的时候,让它一直显示在所有页面的最前面,而不是靠后。Thank you very much.
请各位大侠帮帮忙,谢谢.
帮你修改了一下,
System.Windows.Forms.MessageBox.Show(this, "You have made changes on this page. Would you like to save?", "Message from webpage", System.Windows.Forms.MessageBoxButtons.YesNoCancel, System.Windows.Forms.MessageBoxIcon.Question, System.Windows.Forms.MessageBoxDefaultButton.Button1);
客官看看可合心意?
建议,不要使用Warning来问问题。
如果你非要Save, discard, cancel,自己实现一个窗体也不难。
请问,利用窗体如何去实现啊?
没有这种按钮,你可以选择自己做一个窗体来实现!