记住应用程序的先前设置 [英] Remember Previous Settings for an Application

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

问题描述

实现这一目标的最佳方法是什么(我相对较新的

vb.net)?我应该使用ini文件还是注册表?在vb.net中是否有另一个

选项可供选择?这个

应用程序将驻留在我们的网络上,并且多个用户可以运行它,因此我不认为本地注册表是答案。

基本上我只想记住最后一个用户在表单上选择的选项,然后在下次运行

程序时使用之前使用过的设置。

What is the best method to achieve this (I am relatively new to
vb.net)? Should I use an ini file or the registry? Is there another
option available in vb.net that is the preferred way? This
application will reside on our network and more than one user could
possibly run it so I don''t think the local registry is the answer.
Basically I just want to remember the options the last user chose on
the form and then use those previously used settings the next time the
program is run.

推荐答案

8月19日,11:26 * am,Mel< MLights ... @ gmail.comwrote:
On Aug 19, 11:26*am, Mel <MLights...@gmail.comwrote:

实现这一目标的最佳方法是什么(我相对较新的

vb.net)? *我应该使用ini文件还是注册表? * vb.net中是否有另一个

选项可供选择? *这个

应用程序将驻留在我们的网络上,并且多个用户可以运行它,因此我不认为本地注册表是答案。

基本上我只想记住上一个用户在表单上选择的选项,然后在下次运行

程序时使用之前使用过的设置。
What is the best method to achieve this (I am relatively new to
vb.net)? *Should I use an ini file or the registry? *Is there another
option available in vb.net that is the preferred way? *This
application will reside on our network and more than one user could
possibly run it so I don''t think the local registry is the answer.
Basically I just want to remember the options the last user chose on
the form and then use those previously used settings the next time the
program is run.



我会亲自使用和XML文件。


另外,请注意,从网络运行.NET应用程序会给出你在部署时遇到了很多麻烦。帮自己一个忙,开始学习怎么做(编写一个简单的应用程序并将其部署到你的
网络,然后你会看到错误我''我指的是。


谢谢,


Seth Rowe [MVP]
http://sethrowe.blogspot.com/


Hi Seth,

Hi Seth,


>另外,请注意,从网络运行.NET应用程序会让您在部署时遇到很多麻烦。现在帮自己一个忙,开始学习如何做(编写一个简单的应用程序并将其部署到你的网络,然后你会看到我所指的错误)。
>Also, be warned that running .NET apps from the network will give you
a lot of headaches at deployment. Do yourself a favor now and start
learning how to do it (write a simple app and deploy it to your
network, then you''ll see the errors I''m referring to).



我认为最近3.5 SP1修复了很多内容?


I thought a lot of that was fixed with recent 3.5 SP1 ?


8月19,上午10:40,rowe_newsgroups< rowe_em ... @ yahoo.comwrote:
On Aug 19, 10:40 am, rowe_newsgroups <rowe_em...@yahoo.comwrote:

8月19日上午11点26分,Mel< MLights .. 。@ gmail.comwrote:
On Aug 19, 11:26 am, Mel <MLights...@gmail.comwrote:

实现这一目标的最佳方法是什么(我相对较新的

vb.net)?我应该使用ini文件还是注册表?在vb.net中是否有另一个

选项可供选择?这个

应用程序将驻留在我们的网络上,并且多个用户可以运行它,因此我不认为本地注册表是答案。

基本上我只想记住最后一个用户在表单上选择的选项,然后在下次运行

程序时使用之前使用过的设置。
What is the best method to achieve this (I am relatively new to
vb.net)? Should I use an ini file or the registry? Is there another
option available in vb.net that is the preferred way? This
application will reside on our network and more than one user could
possibly run it so I don''t think the local registry is the answer.
Basically I just want to remember the options the last user chose on
the form and then use those previously used settings the next time the
program is run.



我会亲自使用和XML文件。


另外,要注意从网络运行.NET应用程序会给出你在部署时遇到了很多麻烦。帮自己一个忙,开始学习怎么做(编写一个简单的应用程序并将其部署到你的
网络,然后你会看到错误我''我指的是。


谢谢,


Seth Rowe [MVP] http://sethrowe.blogspot.com/


I would use and XML file personally.

Also, be warned that running .NET apps from the network will give you
a lot of headaches at deployment. Do yourself a favor now and start
learning how to do it (write a simple app and deploy it to your
network, then you''ll see the errors I''m referring to).

Thanks,

Seth Rowe [MVP]http://sethrowe.blogspot.com/



好​​的,我会研究使用XML文件。谢谢你的提示。我会

在Google上搜索如何操作的说明。


我们有一个源代码我们的文件服务器上的文件夹,我们存储所有

的源代码和可执行文件。然后任何开发人员都可以修改程序代码或从这个位置运行可执行文件。

这个特殊的vb.net应用程序实际上不会安装在任何地方。它b / b
仅供开发团队使用,以便轻松管理/ b $ b更新我们的数据库。

Okay, I''ll look into using an XML file. Thank you for the tip. I''ll
search Google for instructions on how to do that.

We have a "Source Code" folder on our file server where we store all
the source code and the executable. Then any of the developers can
modify the program code or run the executable from this location.
This particular vb.net app won''t actually be installed anywhere. It
is intended to just be used by the development team to easily manage/
update one of our databases.


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

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