how to add the string to the resources. So when I restart the program that string should be in the resources. After when I add it how can I get it? For example:
textBox1.Text = // string that I've added;
Thanks...
how to add the string to the resources. So when I restart the program that string should be in the resources. After when I add it how can I get it? For example:
textBox1.Text = // string that I've added;
Thanks...
Resources are not the right solution for your problem, they are designed to provide various (language) versions of constant strings. Generating them during execution of the program is possible but not quite easy. Even if you succeed to generate them, saving the file would be also hard - they are stored in the .exe or .dll file, which is probably locked as it is just executing.
Use settings.
Use settings they I've used them for a while and they work great. If you want to change the setting you can do this:
Settings.Default.YourSetting = //Something
Settings.Default.Save();