将设置保存在Costum文件中 [英] Save settings in costum file
问题描述
你好
我有一个应用程序(游戏),我希望用户设置和更改一些设置:例如宽度,高度,键等.
I have a application (game) and I want the user to set and change some settings: like width, height, keys, etc.
保存所有内容的最佳选择是什么?我想到了文本文件(但必须对用户不可读",已加密或在Windows资源管理器中对用户不可见)或项目提供的设置.哪个是最好的选择?
What is the best option to save everything? I thought on textfile (but it has to be "unreadable" to user, kind of encrypted or not visible to user in windows explorer) or on settings provided from project. Which one is the best option?
推荐答案
何塞,
您可以使用My.Settings保存控件属性,这是一个链接:
You can use My.Settings to save control properties, here's a link:
http://msdn.microsoft.com/en-us/library/saa62613(v = vs.100).aspx 和 http://msdn.microsoft.com/en-us/library/25zf0ze8 (v = vs.100).aspx
关于罗恩
这篇关于将设置保存在Costum文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!