Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SaveFileDialog class. How to make file name read-only.

Posted on 2006-06-26
5
Medium Priority
?
415 Views
Last Modified: 2010-04-23
After explicitly setting the file name that I wish the user to save the file under I want to set it so it cannot be changed and all the user has to do to is click save.
0
Comment
Question by:lgropper
  • 3
5 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16985337
I don't believe that there is any way to control that dialog like that through the properties.

Bob
0
 
LVL 20

Expert Comment

by:ElrondCT
ID: 16985520
If you don't want them to do anything but click Save, why use the SaveFileDialog box? Are you intending to allow them to specify a folder location, but just not change the filename itself? In that case, you might want to display the directory tree in a ListView, so the user can select the folder, and then you save the file accordingly. If you're setting the folder to a specific location as well, I don't understand what the point is of the dialog--just create a MessageBox that tells them the file name.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16985638
If you want to use a fixed file name, but a different folder, that would be a reason.

Bob
0
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 2000 total points
ID: 16986001
If you want to use a Fixed file name, but allow the user to select a different location, then use the FolderBrowserDialog instead...
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16986074
Oooh, another great suggestion, Mike.  =:)

Bob
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question