How to store settings in a windows apllication?
-
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
-
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
- 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
-
- 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
Thanx for your help!