savefiledialog Questions

4

Solved

I'm trying to get excels save and open dialog boxes to open to "my computer" by default so the user can select a drive from there. I have got the dialog boxes to open to any path on any drive or m...
Donegan asked 12/11, 2013 at 11:25

7

Solved

How can I make a browser display a "save as dialog" so the user can save the content of a string to a file on his system? For example: var myString = "my string with some stuff"; save_to_filesyst...
Immobility asked 5/7, 2012 at 0:38

3

Solved

I am using c# WinForms. I have a save dialog box that pops up and a message box after that that says it was saved successfully. I just realized that if a user clicks cancel, my message box still c...
Alcina asked 5/9, 2014 at 20:11

2

I've the following C# code, which is using the SaveFileDialog and set's the AddExtension property to true: var dialog = new SaveFileDialog(); dialog.AddExtension = true; dialog.DefaultExt = "txt";...
Pinebrook asked 16/4, 2019 at 14:51

4

Solved

var dlg = new SaveFileDialog(); dlg.FileName = "graph"; dlg.DefaultExt = ".bmp"; dlg.Filter = "PNG|*.png|DOT|*.dot|Windows Bitmap Format|*.bmp|GIF|*.gif|JPEG|*.jpg|PDF|*.pdf|Scalable Vector Graphic...
Mendive asked 23/5, 2011 at 23:33

4

Solved

I try, when I press save in SaveFileDialog I do something. I trying fix but always something wrong. SaveFileDialog dlg2 = new SaveFileDialog(); dlg2.Filter = "xml | *.xml"; dlg2.DefaultExt = "xml...
Jollification asked 8/5, 2014 at 10:30

9

Solved

I'd like to have my VBScript display the Windows Save As dialog box, but I could not find out how to do it. Using this code: Dim sfd Set sfd = CreateObject("UserAccounts.CommonDialog") sfd.ShowOp...
Enlargement asked 8/12, 2010 at 9:52

1

Solved

The other day I had the following question SaveFileDialog AddExtension doesn't work as expected. Now a follow up question came to my mind. Should I use the FilterIndex property or the extensio...
Yul asked 18/4, 2019 at 11:40

1

Solved

How can I stop a System.Windows.Forms.SaveFileDialog from prompting twice to replace a selected file, and instead prompt only once? Either I'm missing something, there's something wrong with my in...
Picco asked 3/12, 2018 at 14:36

4

I want to set topmost my SaveFileDialog. But as you know there is no property. Is there any other way to set TopMost at SaveFileDialog?
Sanborn asked 12/1, 2011 at 8:18

7

I have been searching up and down the web and unfortunately never came across an issue quite like mine, so here goes: My C# WPF application won't show me no OpenFileDialogs or SafeFileDialogs. pr...
Priesthood asked 4/2, 2010 at 16:18

3

Solved

One of my customers is experiencing a crash in my WPF application when saving a file. My save file code is: var saveFileDialog = new SaveFileDialog { InitialDirectory = string.Concat(Environment...
Freya asked 26/3, 2012 at 15:56

11

Solved

I use the following code block with some more code inside the using block: using (System.Drawing.Bitmap tempImg = (System.Drawing.Bitmap)tempObj.GetData(System.Windows.Forms.DataFormats.Bitmap)) ...
Cardinal asked 28/4, 2011 at 4:28

3

In Notepad++ (Windows 7), is there a way to disable the Common File Dialog Box when saving a file? I would like to replace it with the standard Save File Dialog Box. Notepad++ uses this dialog box...
Malefaction asked 8/6, 2015 at 16:26

1

I have a save dialog in an electron app. At the moment, when a user clicks save it will save with the default name and file extension foo.pdf. When the name is changed, the file extension isn't ad...
Fouquet asked 31/3, 2017 at 8:59

2

Solved

In my SaveFileDialog I have multiple types in the filter, however when viewing the dialog if I choose a filter to view files of that type in the directory I am only able to see files for the first ...
Reich asked 14/4, 2011 at 14:18

3

Solved

While showing a save dialog, I want to hook user's filter type change and change file extension automatically. (e.g. like MSPaint's "Save As" operation.) With TSaveDialog and setting UseLatestComm...
Martyrology asked 27/1, 2010 at 8:0

2

Solved

I get files with no extension after saving them, although I give them extensions by filetypes option in my program. I can only do it using defaultextension option, but I want to let user decide to ...
Derringdo asked 9/7, 2016 at 17:26

2

Solved

I've gotten as far as putting a file into a stream from a url. However puttin savefiledialog inside the event OpenReadCompleted gives an exception because the savefiledialog needs to be fired from ...
Evonevonne asked 22/11, 2011 at 16:46

4

Solved

I'm building a GUI with the SimpleSwingApplication trait in scala swing. What I want to do is to provide a mechanism on close, that asks the user (Yes,No,Cancel) if he didn't save the document yet....
Mnemosyne asked 4/7, 2011 at 14:5

5

I would like to create SaveFileDialog with default file name from value DataGridViewCells So far I tried private void buttonSave_Click(object sender, EventArgs e) { //first //mySaveFileDialog....
Pent asked 18/1, 2014 at 3:12

2

I'm using Microsoft.Win32.SaveFileDialog class to save my files. When I saved file, and minimize my app, I can't restore it back. It happens only after when used Microsoft.Win32.SaveFileDialog. Her...
Deprecative asked 26/3, 2012 at 15:32

2

Solved

I am trying to save my .NET application settings file to the user's %MyDocument%\MyApplication folder, but I don't know how to check for an existing folder\file, and create or append the folder\fil...
Rebellion asked 14/2, 2013 at 0:43

3

Solved

I write this code to get fileName to save my file : #include "stdafx.h" #include <windows.h> int _tmain(int argc, _TCHAR* argv[]) { OPENFILENAME ofn; char szFileName[MAX_PATH] = ""; ...
Gaulish asked 4/5, 2012 at 13:0

2

Solved

I am developing exporting data in xpdl format. There are 2 options - version 2.1 and 2.2. I am using SaveFileDialog, but how can I distinguish between those 2 options? SaveFileDialog dlg = new Sa...
Thor asked 15/8, 2012 at 6:28

© 2022 - 2024 — McMap. All rights reserved.