Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Custom Save Dialog Attributes

Tags:

c#

winforms

Currently I am looking at the SaveFileDialog but I do not see any way of allowing users to set custom attributes. Does anyone know how I can prompt the user for custom attributes at the same time.

The screenshot below is from Excel 2010 and is doing exactly what I would like to accomplish.

Custom Window Properties

Any thoughts on how I might accomplish the same thing?

like image 361
Sam Plus Plus Avatar asked Apr 16 '13 15:04

Sam Plus Plus


People also ask

What is use of SaveFileDialog in C#?

The SaveFileDialog component allows users to browse the file system and select files to be saved. The dialog box returns the path and name of the file the user has selected in the dialog box. However, you must write the code to actually write the files to disk.

How do I save SaveFileDialog in VB net?

Developing AutoCAD Plugins using VB.NET with Windows FormsThe SaveFileDialog control prompts the user to select a location for saving a file and allows the user to specify the name of the file to save data. The SaveFileDialog control class inherits from the abstract class FileDialog.


1 Answers

I don't think you can do that without "extending" the SaveFileDialog or creating your own form.

I've found a few links you may find interesting:

Adding a control to a SaveFileDialog

Extending OpenFileDialog and SaveFileDialog

They do seem "hackish" though.

Here are a few user controls that may help you if you decide to roll up your own form, though it's a pity if you really have to "reinvent" the wheel.

Explorer Tree

FileBrowser

Good Luck.

like image 125
Conrad Clark Avatar answered Sep 23 '22 04:09

Conrad Clark