码迷,mamicode.com
首页 > Windows程序 > 详细

c# winforms TextBox的记忆功能

时间:2014-10-24 15:56:13      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:winform   blog   http   os   ar   for   sp   log   html   

c# winforms TextBox的记忆功能

 

1:在项目上点右键  sproperties-settings 添加项目 如 MyText  类型 String

2: 获取值:   string loginId = Properties.Settings.Default.MyText;

3:保存值:在Formclosing中

            Properties.Settings.Default.MyText =  UserID.ToString();

            Properties.Settings.Default.Save();

c# winforms TextBox的记忆功能

标签:winform   blog   http   os   ar   for   sp   log   html   

原文地址:http://www.cnblogs.com/jiahuafu/p/4048336.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!