Post[Help]Settings 2[Solved]

Posts 112 of 12 · Page 1 of 1
[Help]Settings 2[Solved]
hey im making something that i need it to save evry thing so when i open it back up nothing change
Quote Originally Posted by tremaster View Post
hey im making something that i need it to save evry thing so when i open it back up nothing change
textbox?
checkbox?

use my.settings....there are tutorials 'bout that..
plz just tell me
Quote Originally Posted by tremaster View Post
hey im making something that i need it to save evry thing so when i open it back up nothing change
What you exactly want to do ?? Retaining controls position, retaining their state (for example checkbox check state) , or what ????

If we know what exactly you wanna do, then we can help !! Tell us exactly what ya wanna do !!
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
Quote Originally Posted by tremaster View Post
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","")
Quote 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
i dont want to click the link im to lazy
Quote Originally Posted by tremaster View Post
i dont want to click the link im to lazy
Seriously? *insert mean insult here*
thanks mj ill test it
edit:worked fine
@ TreMaster

We are here to help, but when a link is provided , make some effort to use it.

If your simply just looking for others to send you a C&P friendly code, then you will never learn, and will always have to ask.
Posts 112 of 12 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?