Reputation: 807
I'm using a savefiledialog
to save files, but i don't want the user to be able to change the text in the filename field. My previous form shows them how the file(s) will be named. Is it possible to make the textbox uneditable? Or is my best choice just to make my own form that just allows the user to set a save directory?
Thanks!
Upvotes: 3
Views: 3980
Reputation: 8037
As far as I know, there is no way to disable parts of the SaveFileDialog. If you want to give users the option of specifying a directory to save to, use the FolderBrowserDialog instead.
You can use the RootFolder property to set the starting folder. Once the user clicks "OK", you can smilpy access the SelectedPath property to get the chosen path.
Upvotes: 1