Questions tagged [savefiledialog]

The SaveFileDialog is a (component) class in the .NET Framework that prompts the user to select a location for saving a file.

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.

654 questions
-2
votes
1 answer

How to save files directly from Windows programs to USB connected Android smartphone?

From my Windows computer I can open a file stored on a connected USB smartphone (Android) with any software, with the "open file" dialog. But the phone does not appear in the "save file" dialogs... of course I can first save on the PC, then drag and…
S.E.
  • 150
  • 10
-2
votes
1 answer

cannot convert from 'char[]' to 'string[]'

I was trying to make a save dialog from a rich text document but I keep getting an error on the text. Error: ArgumentNullException Argument 2: cannot convert from 'char[]' to 'string[]' I'm new to c# so I'm not sure how to fix…
-2
votes
1 answer

Paint applet - problems loading/saving images

import java.awt.*; import java.applet.*; import java.awt.event.*; import java.awt.event.MouseMotionListener; import java.awt.event.MouseEvent; import java.lang.Math.*; import java.text.*; import java.io.*; import java.awt.Scrollbar.*; import…
-2
votes
3 answers

How to remove Save As dialog from download handler in CefSharp

I want to remove the SaveAs dialog from CefSharp and want the file to save directly to the specified location.Nothing seems to work out please help public void OnBeforeDownload(IWebBrowser chromiumWebBrowser, IBrowser browser, DownloadItem…
-2
votes
1 answer

VB.NET how to save listview with savefiledialog

Something's wrong in my code, i want to save listview item into text file using savefiledialog. I'm getting error "Overload resolution failed because no accessible 'WriteAllLines' accepts this number of arguments." Private Sub Button3_Click(sender…
Gracia
  • 13
  • 6
-2
votes
2 answers

C# SaveFileDialog using JSON Data pulled from an API

So Im a bit stumped on how I would save a text file containing JSON data that I am pulling using an api. so Based on my Selections I choose in listbox1 i would need to pull the data for those items and save them in JSON format using a…
-2
votes
2 answers

C# Writing to file line by line

So, I am busy making a c# WinForms application for my company. For this, I need to be able to save my tickets in data with the application. Here is what the ticket dialog looks like: I want to save all the data, in some file stored locally (.txt…
Jort D.
  • 25
  • 1
  • 2
-2
votes
1 answer

How to implement a SaveFileDialog in my code, where I am using a FileSteam object

so here is my code with the method, but I cannot seem to figure out how to implement a Save File Dialog within... Any information or guidance will be highly appreciated. Private Sub btSave_Click(sender As System.Object, e As System.EventArgs)…
-2
votes
2 answers

How to display progress on a progress bar using savefiledialog?

I want to display progress of saving a file using the "SaveFileDialog" and "Progress Bar" in a windows form. The file being saved is text file (rtf, txt, ...). This is what I use to save a file: private void Save() { if…
Morgosus
  • 807
  • 5
  • 18
-2
votes
1 answer

Not saving image with SaveFileDialog

I'm having a problem with SaveFIleDialog, i followed a few steps from stackoverflow. The problem is when i dont use SaveFileDialog but this: private void SaveImage(Canvas canvas, string fileName) { RenderTargetBitmap renderBitmap = new…
AlexDev
  • 85
  • 1
  • 9
-2
votes
1 answer

Program is creating a duplicate file each time I save a file

I got a program which asks for the filename and place where to save it with saveFileDialog1. Tho it generates an extra file of 0 bytes with exactly the name name. The type of file is File and when I open it, it tells me it isnt there. I can see this…
wouter de jong
  • 547
  • 2
  • 7
  • 20
-2
votes
2 answers

Why I can't write on my Excel file with savefiledialog?

I need you to clear my point. I can use the application in SaveFileDialog stupid here but I'm a bit stuck. Basically, I have a OpenFileDialog to search .xml file and displays it in a datagridview. Then I will wish to export the contents of the…
-2
votes
3 answers

How do I write 2 byte arrays to a file in C#?

I have two arrays from my own created zip program, farArray and bytes. They are both byte arrays. Now I want to save that in a file (example: "file.zip"). I know that I can write bytes with this code: File.WriteAllBytes(savefile.FileName,…
-2
votes
1 answer

Search button without creating new file C++

I want to open a dialog to search for a filepath, without already creating the File and only saving the pathfile in a textBox. This is what I already got, but it creates a new file: System::IO::Stream^ myStream; SaveFileDialog^…
-2
votes
1 answer

Setting the name of a file in the Windows Save File dialog

Below is a an updated example where through Excel (vba), the sub opens Notepad, adds text and then prompts for a save as file name. It works except the passing of the file name from the vba code to Windows Save File dialog. Option Explicit Private…
abousetta
  • 111
  • 7
1 2 3
43
44