disable savefiledialog's filename box

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!

Answers


A FolderBrowserDialog is probably a better choice.


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.


Need Your Help

How do you make Vim key mappings similar to ZZ?

vim

In Vim you can save all your files and quit by typing ZZ. How can I create a similar mapping but for a different key? Some keys like h, j, k, and l it seems like this would not be possible. Are ...

Qt - GUI Database programming

c++ mysql qt qtgui

I am using Qt GUI to save data in MySQL using C++.