Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. c# change default text at runtime

c# change default text at runtime

Scheduled Pinned Locked Moved C#
csharpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • A Anonymous

      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

      A Offline
      A Offline
      Andres Manggini
      wrote on last edited by
      #2

      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.

      A 1 Reply Last reply
      0
      • A Andres Manggini

        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.

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups