Link to home
Start Free TrialLog in
Avatar of markleszczynski
markleszczynski

asked on

What is the proper syntax when using My.Settings to save information?

I am trying to save the text typed into a text box when a profram closes.  I would also like to have it back in the textbox when I load the form.  It is a variable because when running the application it can change. i'm not looking for a default setting.

My.Settings.Item = textbox.text in the form_closing event   and

textbox.text = My.Settings.Item in the form_load event.

The above doesn't work, looking for ideas.  I am very new at Visual basic.
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

ASKER CERTIFIED SOLUTION
Avatar of iboutchkine
iboutchkine

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial