Solved

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

Posted on 2006-06-26
5
377 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 85

Accepted Solution

by:
Mike Tomlinson earned 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

830 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