应用程序配置文件VB.NET [英] Application configuration file VB.NET

查看:125
本文介绍了应用程序配置文件VB.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是编程世界的新手,现在我正在试图弄清楚如何使用这个app.config来保存设置。



可以你们中的任何人都向我展示了一个简单实用的例子

像一个复选框和一个按钮,当你复选框时,按钮被禁用并将此设置保存在配置文件中。



我曾尝试过:



我还没有尝试过任何东西

解决方案

请查看 OriginalGriff [< a href =https://www.codeproject.com/script/Membership/View.aspx?mid=6122202\"target =_ blanktitle =New Window> ^ ]的提示:



1. 保存并恢复您的表单大小和位置 [ ^ ]



引用:



最简单的保存位置是在应用程序配置中file





2. 我应该在哪里存储我的数据? [ ^ ]



Quote:



Windows有许多可以自由存储数据的地方,当你试图写入时不会导致拒绝访问的例外 - 不幸的是,默认目录不是一个他们


I'm new to the programming world, now I'm trying to figure out how I can use this app.config to save the settings.

Could any of you show me a simple, functional example?
Like a checkbox and a button, when you checkbox the button is disabled and save this setting in the configuration file.

What I have tried:

I have not tried anything yet

解决方案

Please, check out OriginalGriff[^]'s tips:

1. Save and restore your form size and location[^]

Quote:


The easiest place to save this is in the Application config file



2. Where should I store my data?[^]

Quote:


Windows has a number of places that are free for data storage and which will not cause "Access Denied" exceptions when you try to write to them - unfortunately, the default directory is not one of them.


这篇关于应用程序配置文件VB.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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