不用记录在数据库里,记录在文本里就可以了。
if check1.Checked
open "pass.txt" for output as #1
print #1, text2.Text '假设text2是密码
close #1
在form_load里面
dim str as string
on error resume next
open "pass.txt" for input as #1
line input #1, str
close #1
text2.Text = str '将读取的密码恢复到密码框