I've got a button that saves the path to a folder as the text in a text box and I want to save it to the settings file in c# but I keep getting the error:
Cannot implicitly convert type "System.windows.type.textbox" to String
Now the code I'm using to set the text box as the path is:
folderBrowserDialog1.ShowDialog();
textBox1.Text = folderBrowserDialog1.SelectedPath;
And the code I'm using to save it to the settings file is:
string pathh = textBox1;
Properties.Settings.Default.Path = textBox1;
Even if I replace
Properties.Settings.Default.Path = textBox1
Properties.Settings.Default.Path = pathh
I get the same error. Can some one tell me how to fix this please?