Solved

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

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now