Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tabcontrol Caption? 1 30
Change data in datatable 8 30
Closing all open child forms. 4 38
Want to create a userform that looks like the image provided 10 44
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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 …

920 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

14 Experts available now in Live!

Get 1:1 Help Now