savefiledialog

Changing/Adding controls to the windows Open/Save common dialog

Is there a way of changing/adding to the windows Open/Save common dialog to add extra functionality? At work we have an area on a server with hundreds of 'jobfolders'- just ordinary windows folders created/managed automatically by the database application to house information about a job (emails/scanned faxes/Word docs/Spreadsheets/Phot...

Replacing OpenFileDialog / SaveFileDialog in .net

In the application I'm working on, I've been trying to use the SaveFileDialog and OpenFileDialog for their customary purpose (saving and opening files.) However, the application can't support modal forms/dialogs without crashing because too many time-sensitive things happen on the thread that owns the UI. Rewriting the application to m...

How can I validate a filename prior to the SaveFileDialog closing?

I am using a SaveFileDialog and would like to evaluate whether a file meets certain conditions before allowing it to be saved. If it doesn't meet the criteria, I don't want the SaveFileDialog to close when "Save" is clicked. I thought the FileOK might work, but the dialog looks like it is already closed by the time that event is fired,...

.NET Web Browser Control - SaveAs Event

Does anybody know if you can access the SaevFileDialog control that's used by the WebBrowser control? Once somebody saves the webpage being displayed I need to catch where the files have been created; however I can't seem to find any events/members that allow me access to that information. ...

How can I change the extension of the file name in a SaveFileDialog when the user changes the filter?

We have an SaveFileDialog in our application, which offers a variety of formats the user can export media in. We determine the user's choice of format using the FilterIndex property of the SaveFileDialog. The various formats have different file extensions, so we would like the file name that the user has entered to change extension whe...

i want to write a code where after saving the file by savefile dialog and then editing it again to save the savedialog box should not appear

i can save a file using savefiledialog . once the file is saved and if we edit it and then save it again then it should be saved without opening the savefiledialog.please help me with the code. This code is made in Visual Studio 2005 in Windows forms. using System; using System.Collections.Generic; using System.ComponentModel; using Sy...

Save file with appropriate extension in a Save File prompt

In my application I use a SaveFileDialog to pop up a Save As window. I have restricted in the file type section the file to be saved as .dat with the following code. sfdialog.Filter = "Data Files (*.dat*)|*.dat*"; What I want to know how to do is make it automatically save with the .dat extension. Currently it just saves with no exten...

How to use SaveFileDialog asynchronously?

Hi guys, I have a windows forms application, with a button - on the button's event handler, I need to download a file with SaveFileDialog. But I need to do this asynchronously on a separate thread. So far, I came up with this code, but I don't know if my approach is flawed or OK: private void btnDownload_Click(object sender, E...

When does Microsoft.Win32.OpenFileDialog.ShowDialog() return null?

OpenFileDialog's ShowDialog method returns a nullable boolean, set to true if the user clicked OK or false if he clicked Cancel. When does it return null? The documentation does not say. ...

Get SharePoint credentials from SaveFileDialog

Hi I'm creating a client application where the user will be able to open a Windows Forms SaveFileDialog. There the user will enter a specific SharePoint library. Thankfully for me, the saveFileDialog prompts for credentials every time the user enters to a library where he doesn't have access. Later I need to call some SharePoint web ser...

Disabling parts of the SaveFileDialog

Hi, I'm building an application where I need to use a saveFileDialog. The problem is that I want to restrict the users from using some parts of the saveFileDialog (e.g. I don't want them to edit the name of the file). I've heard that it's very difficult to do this using Windows forms SaveAsDialog. Do you know how to do this in native c...

Creating A New SaveFileDialog

After a lot of thought and consideration, and Google-ing, I'm hell-bent on creating my own SaveFileDialog. But I do not know where to start and since I haven't seen anything around the web, I would like to know if anybody has done this before, and what I should look into, or how I might go about doing this? Any help would be greatly app...

Detecting whether or not file has been served to the browser?..kinda..

I have a button which sets window.location to a php file which generates a feed which is then downloaded. However, as the files vary in size due to what data is put into the feed it can sometimes take a while from the click of the button to the file dialog popping up. What I would like to be able to do is click the button and display a ...

Customizing Win32's Save File Dialog

I am trying to save a file using GetSaveFileName and want to have a couple extra popups at the bottom of my save file dialog to allow the user to specify further options. I am trying to follow the MSDN documentation (specifically the Explorer-style customization) on the subject but can't seem to get my custom item to appear. I believe I ...

Problem with SaveFileDialog in Silverlight 3

Hello, i have weird exception by SaveFileDialog in Silverlight 3. I don't really have a idea where the problem is. I create instance of SaveFileDialog in Loaded event of user control. After Download button is clicked and dialogResult is true asynchronous file download is started. After file download is completed, method OpenFile() is c...

System.Windows.Forms.SaveFileDialog does not enforce default extension

I am trying to make SaveFileDialog and FileOpenDialog enforce an extension to the file name entered by the user. I've tried using the sample proposed in question 389070 but it does not work as intended: var dialog = new SaveFileDialog()) dialog.AddExtension = true; dialog.DefaultExt = "foo"; dialog.Filter = "Foo Document (*.foo)|*.foo"...

How to replace FileName in SaveFileDialog.FileOk event handler

I'd like to change the file name of the SaveFileDialog in the event handler attached to the FileOk event, in order to replace the file name typed in by the user with another file name in some cases, while keeping the dialog open: var dialog = new SaveFileDialog(); ... dialog.FileOk += delegate (object sender, CancelEventArgs e) ...

php - file download box

Hi, I'm giving a user a link to download a csv file ...just using Click <a href="report.csv">here</a> to download your file. This text and link is being displayed in a small popup window - height 100 width 400. If the user clicks "save" - then no problem then the file is saved to wherever they choose If though they choose "open" ...

Open File Instead of Save File in Silverlight SaveFileDialog

In Silverlight, there is the SaveFileDialog which allows you to save a file to the user's local machine. The dialog opens only allowing you to save the file. What I'm looking for is a way to open the file similar to the dialog you get when downloading a file through the browser. Aside from round-tripping the file to a server, or havin...

How to set long string(>260) in default FileName in SaveFileDialog?

I am using a SaveFileDialog and have to set long string(longFileName) in FileName. String longFileName is known at Runtime. If I set saveFileDialog.FileName = longFileName ; then I get System.IO.PathTooLongException. How can I do it? ...