How to save latest input?
-
If this time i enter textbox1.text = "Company Name" Next time when i open my application the textbox1.text default will be appear that "CoOmpany Name" again and not empty textbox1.text
-
If this time i enter textbox1.text = "Company Name" Next time when i open my application the textbox1.text default will be appear that "CoOmpany Name" again and not empty textbox1.text
-
If this time i enter textbox1.text = "Company Name" Next time when i open my application the textbox1.text default will be appear that "CoOmpany Name" again and not empty textbox1.text
-
Add this following line into Command button click event or in LostFocus Event of TextBox: SaveSetting "ApplicationName", "Section", "Key" Add this line in form Load Event: TextBox = GetSetting("ApplicationName", "Section", "Key")
Can explain it step by step? thx
-
Can explain it step by step? thx
Hi I think syed saba was clear enoughm but I explain him a little more for you: Write:
Private Sub Text1_LostFocus()
call SaveSettings( "YOUR APPLICATION NAME", "SAVEDVALUES", "TEXT1VALUE", Text1.Text)
End SubPrivate Sub Form1_Load()
Text1.Text = GetSettings( "YOUR APPLICATION NAME", "SAVEDVALUES", "TEXT1VALUE" )
End SubRemember that ANY string that I wrote in CAPITAL LETTERS, is any optional string that you may choose yourself. need more help?
-
Hi I think syed saba was clear enoughm but I explain him a little more for you: Write:
Private Sub Text1_LostFocus()
call SaveSettings( "YOUR APPLICATION NAME", "SAVEDVALUES", "TEXT1VALUE", Text1.Text)
End SubPrivate Sub Form1_Load()
Text1.Text = GetSettings( "YOUR APPLICATION NAME", "SAVEDVALUES", "TEXT1VALUE" )
End SubRemember that ANY string that I wrote in CAPITAL LETTERS, is any optional string that you may choose yourself. need more help?
I mean the SaveSettings and GetSettings im not really understand it. They are not vb.net default code right? I got it underlined and "name saveSettings is not declared".