保存个人设置 [英] Save personal settings

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

问题描述


 private void followUpTabToolStripMenuItem1_Click(object sender, EventArgs e)
    {
      OpenFileDialog Background = new OpenFileDialog();
      Background.Title = "Select Background";
      Background.Filter = "bmp files (*.bmp)|*.bmp";

      if (Background.ShowDialog() == DialogResult.OK)
      {
        this.FollowUpTab.BackgroundImage = new Bitmap(Background.FileName);
        this.FollowUpTab.BackgroundImageLayout = ImageLayout.Stretch;
        this.FollowUpNameLabel.BackColor = Color.Transparent;
        this.FollowUpNumberLabel.BackColor = Color.Transparent;
        this.FollowUpTopicLabel.BackColor = Color.Transparent;
        this.TicketNumberLabel.BackColor = Color.Transparent;
        //here is where i try to save the settings...but this does not work
         Properties.Settings.Default.Save();
      }
    }

推荐答案

此线程可能会有所帮助.

This thread may help.

 

http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/ddeaca86-a093- 4997-82c9-01bc0c630138/


这篇关于保存个人设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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