Code:OpenFileDialog3.ShowDialog()
My.Settings.Process3 = OpenFileDialog3.FileName
My.Settings.Save()
Form1.Process3.StartInfo.FileName = My.Settings.Process3
It won't save the settings, I close the app and it doesn't save the setting. Help please.
Printable View
Code:OpenFileDialog3.ShowDialog()
My.Settings.Process3 = OpenFileDialog3.FileName
My.Settings.Save()
Form1.Process3.StartInfo.FileName = My.Settings.Process3
It won't save the settings, I close the app and it doesn't save the setting. Help please.
Place this in your code before you close the app:
My.Settings.Save()
Oops, sorry about that. I didn't read your code very close did I?
=P lol
is your process3 setting set to user or application? It will only work if it is set to user.
its set to user
Help =(
post your project here. I 'll take a look on it.
Here you go.
ITs on Form2 btw not Form1
There is some thing is wrong with your solution file! I can't open it.
Let me ask this.... what makes you think it isn't saving?
-tg
Because I exit the program purposly and when i load it again and hit the WoW button it says cannot find program
No wander I couldn’t open it :rolleyes:Quote:
it says cannot find program
I keep the ControlPanel.exe.config with it but it just doesnt wanna change its stuff it stays how it always has
User settings aren't saved to the config file in the application folder. They are saved to a different config file tucked away deep in the user's documents and settings folder structure. So if you check the one in the application folder you will never see it change. Only application settings are stored there and those are read only. When you test to see if it saved then trying running the exe outside of VS on the second try.
still no luck
Help >.<
It is saving just fine but you are overwritting it in the Form2_Load event with a blank string from Form1.Process3.StartInfo.FileName which is not set to the value in the fil at the start of the application.
If you set a break point in that event after saving something you will see that My.Settings.Process3 is populated until you assign it the value from Form1.Process3.StartInfo.FileName.