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. How to store settings in a windows apllication?

How to store settings in a windows apllication?

Scheduled Pinned Locked Moved C#
questioncsharptutorialloungelearning
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.
  • S Offline
    S Offline
    Soulprovider
    wrote on last edited by
    #1

    I am designing a windows application with Visual C#. (beginner) In this application I created a windows form "MenuSettings" with a tabcontrol for general & specific settings. in one of the tabs 4 directory paths must be set. Visually this is shown as 4 rows where each row has a button to browse for a directory and a textbox to show the selected full directory path. my questions are: 1)How can i make this button browse for a directory 2)Show the selected directory in the related textbox 3)and store the selected directory path as a variable

    J 1 Reply Last reply
    0
    • S Soulprovider

      I am designing a windows application with Visual C#. (beginner) In this application I created a windows form "MenuSettings" with a tabcontrol for general & specific settings. in one of the tabs 4 directory paths must be set. Visually this is shown as 4 rows where each row has a button to browse for a directory and a textbox to show the selected full directory path. my questions are: 1)How can i make this button browse for a directory 2)Show the selected directory in the related textbox 3)and store the selected directory path as a variable

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2
      1. Search for FolderBrowserDialog 2) To get the selected folder from FolderBrowserDialog, use the SelectedPath property. To display this directory in a TextBox, use the TextBox's .Text property. 3) Create a string field in your class. Name it something appropriate. Set it equal to the SelectedPath you get back from the FolderBrowserDialog.

      Tech, life, family, faith: Give me a visit. I'm currently blogging about: How men in the Catholic Church replaced Passover with Easter The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

      S 1 Reply Last reply
      0
      • J Judah Gabriel Himango
        1. Search for FolderBrowserDialog 2) To get the selected folder from FolderBrowserDialog, use the SelectedPath property. To display this directory in a TextBox, use the TextBox's .Text property. 3) Create a string field in your class. Name it something appropriate. Set it equal to the SelectedPath you get back from the FolderBrowserDialog.

        Tech, life, family, faith: Give me a visit. I'm currently blogging about: How men in the Catholic Church replaced Passover with Easter The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

        S Offline
        S Offline
        Soulprovider
        wrote on last edited by
        #3

        Thanx for your help!

        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