DontFret

I am using the SaveFileDialog class to prompt the user for a location to save a particular file. The kicker is that I don't want the user to be able to change the name of the file. I want to display the file name that I specify through some c# code, then disable the file name text box so that it can't be changed. The SaveFileDialog class does not have a property to disable the text box. Is there some other way to do it. I found the following articles about customizing the common file dialogs:

http://msdn2.microsoft.com/en-us/library/ms646951.aspx

http://www.codeproject.com/cs/miscctrl/OpenFileDialogEx.asp

Frankly, I couldn't figure out how to change the properties of existing controls, though. Any suggestions



Re: Windows Forms General Disable file name text box in SaveFileDialog?

ARK88

If you don't want to allow the user to change the name of the file, then is there any reason you couldn't utilize the FolderBrowserDialog It would still allow you to display the name of the file (via the "Description" property)... just a thought.





Re: Windows Forms General Disable file name text box in SaveFileDialog?

wirol

hi,

if u don't want user to change the file name, u can only show folder dialog to choose the location. Then you save ur file(with ur desired file name) to the location user chose by dialog.

WIROL