将设置保存在Costum文件中 [英] Save settings in costum file

查看:122
本文介绍了将设置保存在Costum文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我有一个应用程序(游戏),我希望用户设置和更改一些设置:例如宽度,高度,键等.

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屋!

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