Originally Posted by
tremaster
ok i want evry thing to stay the sameall the codes and evry thing like lets say a button made a textbox read only how would i make that command save
OK, suppose you have a textbox and a button on the form. When you close the form the textbox will save the text and the next time we open the form, it retrieves the text !!!
Here you go:
On your main form's closing event (For example: Form1), put this code:
Code:
'Replace Textbox1.text with the text you want to save...
SaveSetting(Application.productName,"Settings","Txt",textbox1.text)
Next double click the same form and put the following code:
Code:
'Replace Textbox1.text with the same textbox you used on the closing event of the form.
Textbox1.text = GetSetting(Application.productName,"Settings","Txt","")
Originally Posted by
tremaster
i dont want to click the link im to lazy
LOL
Don't say that you are lazy to C&P now