如何保存用户设置而不关闭应用程序 [英] How to save user settings without close application

查看:113
本文介绍了如何保存用户设置而不关闭应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Guys,你好吗,我希望你会成为好人,我面临一个小问题,那就是我想知道如何保存用户设置而无需关闭申请'

因为我想要在不关闭申请的情况下获得新价值。



谢谢



我有什么试过:



private void save_Click(object sender,EventArgs e)

{

.Settings.Default.Source = textBox1.Text;

Properties.Settings.Default.Save();

Application.Exit();

}

Hello Guys, How are you, I hope you will be fine guys, I am facing a small issue and that is I want to know how to save user settings without close application'
because I want to get the new value without closing the application.

Thanks

What I have tried:

private void save_Click(object sender, EventArgs e)
{
Properties.Settings.Default.Source = textBox1.Text;
Properties.Settings.Default.Save();
Application.Exit();
}

推荐答案

尝试

Try
private void save_Click(object sender, EventArgs e)
{
   Properties.Settings.Default.Source = textBox1.Text;
   Properties.Settings.Default.Save();
   Application.Exit();
}


这篇关于如何保存用户设置而不关闭应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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