c# change default text at runtime
-
The content of the textbox is a pathname. I want to change the path and then press "save as default" -> now the default path should be the new one (even after restarting) Is this possible? thanks and regards markus
Yes, search on "Dynamic Properties", you can bound the Text property of your TextBox to a config file. Hope this helps. Andres Manggini. Buenos Aires - Argentina.
-
Yes, search on "Dynamic Properties", you can bound the Text property of your TextBox to a config file. Hope this helps. Andres Manggini. Buenos Aires - Argentina.
yes that seems to work but when i try to save the new path i get an exception: "Collection is Read Only" my code: private void button1_Click(object sender, System.EventArgs e) { Configuration.ConfigurationSettings.AppSettings.Set ("textBox1.Text", newPath); } thanks and best regards