| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 482 人关注过本帖
标题:[求助]注册表存数据丢失问题?
只看楼主 加入收藏
glittle
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2006-3-2
收藏
 问题点数:0 回复次数:0 
[求助]注册表存数据丢失问题?

Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
SaveSetting("TEST06", "TEXTBOX1", "TEXT", TextBox1.Text)
SaveSetting("TEST06", "TEXTBOX2", "TEXT", TextBox2.Text)
SaveSetting("TEST06", "TEXTBOX3", "TEXT", TextBox3.Text)
SaveSetting("TEST06", "TEXTBOX3", "TEXT", TextBox4.Text)
SaveSetting("TEST06", "TEXTBOX3", "TEXT", TextBox5.Text)

SaveSetting("TEST06", "TrackBar1", "VALUE", TrackBar1.Value)

SaveSetting("TEST06", "CheckBox1", "Checked", CheckBox1.Checked)
SaveSetting("TEST06", "CheckBox1", "Checked", CheckBox2.Checked)
SaveSetting("TEST06", "Checkbox2", "Checked", CheckBox3.Checked)

End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
TextBox1.Text = GetSetting("TEST06", "TEXTBOX1", "TEXT")
TextBox2.Text = GetSetting("TEST06", "TEXTBOX2", "TEXT")
TextBox3.Text = GetSetting("TEST06", "TEXTBOX3", "TEXT")
TextBox4.Text = GetSetting("TEST06", "TEXTBOX4", "TEXT")
TextBox5.Text = GetSetting("TEST06", "TEXTBOX5", "TEXT")

TrackBar1.Value = GetSetting("TEST06", "TrackBar", "VALUE", 0)

CheckBox1.Checked = GetSetting("TEST06", "CheckBox1", "Checked", False)
CheckBox2.Checked = GetSetting("TEST06", "CheckBox2", "Checked", False)
CheckBox3.Checked = GetSetting("TEST06", "CheckBox3", "Checked", False)

End Sub



数据恢复后和保存时候不一样。。大家帮我看下是咋回事?谢谢

[此贴子已经被作者于2006-3-15 16:40:12编辑过]

搜索更多相关主题的帖子: 注册表 数据 
2006-03-15 16:39
快速回复:[求助]注册表存数据丢失问题?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.061436 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved