-
[C#] Save Textbox?
I am working on a program that streams music. I have it so people browse for a directory that there music is in, it shows the directory's path in a textbox and then it sends the contents to a listBox. What I'm trying to do is make it so the next time they open up the application it automatically goes to the directory they specified when they first ran the application. How would I do that?
-
Re: [C#] Save Textbox?
I would create a Setting for it, then bind the TextBox' Text property to the setting.
-
Re: [C#] Save Textbox?
Further to what Atheist posted, you can create the setting and the binding from the (ApplicationSettings) node in the properties window for the TextBox. Once that's done the data will be loaded and saved automatically at startup and shutdown.