![vb单击对话框确定按钮代码](https://i-blog.csdnimg.cn/blog_migrate/2c7c27415f5122fb2da73ac69d35faa0.png)
vb单击对话框确定按钮代码
As a computer geek, I often find myself helping people, and watching them change settings on their PC… and they almost always click the Apply button, and then the OK button. Why?
作为计算机爱好者,我经常发现自己在帮助人们,看着他们在PC上更改设置……他们几乎总是单击“应用”按钮,然后单击“确定”按钮。 为什么?
Whenever you encounter a dialog box in Windows, there are the standard OK, Cancel, Apply buttons—but you don’t actually have to click the Apply button first.
每当您在Windows中遇到对话框时,都有标准的“确定”,“取消”,“应用”按钮-但实际上您不必首先单击“应用”按钮。
![image image](https://i-blog.csdnimg.cn/blog_migrate/04e9616d192b637667b31b28d31d133b.png)
The OK button does the same thing, saves the settings, and then closes the dialog box… saving you an extra click. Don’t believe me? Try it out for yourself. Only the worst possible application won’t behave that way, and you probably don’t want to use that type of application to begin with.
“确定”按钮执行相同的操作,保存设置,然后关闭对话框,从而节省了额外的单击时间。 不相信我吗自己试试吧。 只有最糟糕的应用程序不会那样运行,并且您可能不希望一开始就使用这种类型的应用程序。
The only exception to this rule is a multiple tab dialog box, on a badly written application. Sometimes… your settings on one tab won’t stick unless you click Apply.
此规则的唯一例外是在编写错误的应用程序上的“多个选项卡”对话框。 有时……除非单击“应用”,否则一个选项卡上的设置不会保留。
![image image](https://i-blog.csdnimg.cn/blog_migrate/08683389e4219a650c17d5be70ee5afd.png)
Note that in this particular case, you can make changes in any one of the tabs, and they will carry through without having to click Apply, because this dialog window is well written. We’re just using the screenshot as an example of a multiple tab setting interface.
请注意,在这种特殊情况下,您可以在任何一个选项卡中进行更改,并且这些更改将继续进行而不必单击“应用”,因为此对话框窗口写得很好。 我们仅以屏幕截图作为多标签设置界面的示例。
So now that you know better, you can tell us… do you always use the Apply button first? Have you ever found an instance where it behaves differently?
现在,您知道的更多了,您可以告诉我们……您是否始终先使用“应用”按钮? 您是否曾经找到过一个行为不同的实例?
vb单击对话框确定按钮代码