Save File Dialog question

E

Elmo Watson

Let's say I have a filename in my Save File Dialog - then, from the filter
dropdown, I choose a different filetype - -
How can I change the filename (in the textbox), to show the extension that
was just changed in the filter dropdown?
 
K

Kevin Spencer

The problem here is that a file type has a default extension, but the same
file type can have different extensions. For example, the .txt and the .inf
extensions both open in NotePad by default. And you can give a file any
extension you wish, regardless of the file type. Now, if you set the
AddExtension property to true, and the user does not add the extension, the
SaveFileDialog will append the extension for the file type selected, but if
the user adds the extension, the SaveFileDialog will not change it.

This is the way the SaveFileDialog was designed. To change the behavior, you
would have to write your own Dialog box.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top