

WinForm字符串保存在Resources和Settings的区别
//Resources : 只读
MessageBox.Show(Properties.Resources.Nick);//Settings :
// 当范围为用户时可读写
// 当范围为应用程序时只读
MessageBox.Show(Properties.Settings.Default.Domain);
Properties.Settings.Default.Domain = "mzwu.cn"; //修改的内容下次启动时不会丢失
MessageBox.Show(Properties.Settings.Default.Domain);
评论(0)
暂无评论。