如何在c#中为所有按钮单击是 [英] How to Click Yes to all button in c#

查看:70
本文介绍了如何在c#中为所有按钮单击是的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我正在编写和阅读app.config文件。

一切顺利,但是当我写它的时候显示接受更改的消息框,我必须手动点击它。



请告诉我如何以编程方式点击它。

Hi all

I am writing and reading from app.config file.
all going well, but when i am writing it's showing message-box for accepting the changes and i have to click it manually.

Please tell me how to click it programmatically.

推荐答案

而不是试图解释这里的一切,因为我不知道你是如何尝试访问或写入配置文件。 (显示您遇到问题的代码可以让我们更好地了解您的问题所在。)Code Project中有一篇很好的文章解释了访问,写入和生成配置文件的新密钥。



使用.NET 2.0读/写App.Config文件 [ ^ ]



我一般不会链接到CP之外的文章,但是本文还深入研究了访问配置文件时可能遇到的一些常见问题。 如何阅读和写入app.Config或web.Config使用C# [ ^ ]



祝你好运。
Rather than trying to explain everything here, as I do not know how you are attempting to access or write to the config fle. (Showing the code where you are having trouble would have allowed us to better understand where your issue lies.) There is a nice article here in Code Project that explains accessing, writing to and generating new keys to the config file.

Read/Write App.Config File with .NET 2.0[^]

I don't generally link to articles outside of CP, but this article also delves into some common pitfalls one may encounter with accessing the config file. How to read from and write to an app.Config or web.Config using C#[^]

Good luck.


这篇关于如何在c#中为所有按钮单击是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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