我如何设置“无按钮选项"?作为默认,当打开一个消息框时 [英] how can i set "No button option" as a defalt, when a message box open

查看:78
本文介绍了我如何设置“无按钮选项"?作为默认,当打开一个消息框时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望打开带有两个选项按钮是"和否"的消息框时,已经设置了默认的否按钮选项",这意味着选项卡的焦点已经位于否按钮"上..


如果有人知道如何编写此代码,请告诉我.............

i want that when a message box open having two option buttons YES and No, the default "No button option" is already set, means the focus of tab already on "No button" ..


if any one know how to code this please tell me.............

推荐答案

让我们假设一下是System.Windows.Forms. :-)

有几个 System.Windows.Forms.MessageBox.Show;您将在这里看到所有这些文件: http://msdn.microsoft.com /en-us/library/system.windows.forms.messagebox.show.aspx [ http://msdn .microsoft.com/en-us/library/system.windows.forms.messageboxdefaultbutton.aspx [
Let''s assume for a minute this is System.Windows.Forms. :-)

There are several System.Windows.Forms.MessageBox.Show; you will see them all here: http://msdn.microsoft.com/en-us/library/system.windows.forms.messagebox.show.aspx[^]. Chose the methods having parameter of the type System.Windows.Forms.MessageBoxDefaultButton, see http://msdn.microsoft.com/en-us/library/system.windows.forms.messageboxdefaultbutton.aspx[^].

This parameter will let you specify what button gets initial focus.

—SA


这篇关于我如何设置“无按钮选项"?作为默认,当打开一个消息框时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆