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
-1
votes
1 answer

how to save canvas object position and reload them in UWP c#

I made a "Dodge Game" that adds charaters to a canvas, and a button "save". When i press the "Save: button, I want to save all the objects location, game settings ( timer current form),etc'. Then i would like to make a button that reload the game…
-1
votes
2 answers

Impossible to get the RichTextBox from the Selected Tab

My program is almost finished, which is a multi-tabbed Notepad, and i can't get to work saving the RichTextBox of the active tab. Screenshot First tab has a RichTextBox called "BLACKTEXT" but the others are created dynamically by clicking "New". new…
linkings
  • 3
  • 3
-1
votes
1 answer

SaveFileDialog.ShowDialog() throws an System.AccessViolationException for seemingly no reason

I am trying to use the save file dialog in a windows forms project of mine. When trying to save a file I use the showDialog() method and it throws a System.AccessViolationError. The initial directory of the save file dialog isn't set so I don't see…
Saffron
  • 3
  • 3
-1
votes
1 answer

Disable the Network Drive from the SaveFileDialog() in C#

How could I disable/hide/remove the Network Drive from the SaveFileDialog() in C#? Here is the demo code for reference. using (var browsDlg = new SaveFileDialog()) { browsDlg.Title = "Save File"; // What should be written here to hide the…
-1
votes
1 answer

How to save files in specific locations without showing SaveDialog's Prompt

I'm been wondering is there a way to save a file in specific's folder in C#? The only method that I know is 'SaveFileDialog' but the problems is I want to save files in folder without showing saveFilesDialog's Box. saveFilesDialog's Box : is a box…
Pazzles
  • 9
  • 3
-1
votes
1 answer

SaveFileDialog Menuclick Item Doesnt Work.

If I set path = "C:\\MSREAD.txt"; and Click on SaveAs Menu Item ,it saves Filetext,But If I dont give the String path and save it from saveFD.FileName it doesnt work.Please help me with this issue. Thanks a lot public void SaveToFile() { String…
krikk
  • 25
  • 4
-1
votes
2 answers

Save image from react web app to my laptop

I am trying to find out how I can go about saving an image displayed on my react web app, by clicking "save" button and having my image saved by: To downloads folder on my laptop OR Have windows explorer pop up and I determine filename and where I…
missjcohen
  • 59
  • 1
  • 2
  • 5
-1
votes
1 answer

c++ Visual Studio Output file error

I'm creating a text editor for one application, using richtextbox to change the text. I have to add a text file with openfiledialog, then save that file to an output file. I'm using this code to save my file SaveFileDialog^ saveFile1 = gcnew…
iheb athimni
  • 15
  • 10
-1
votes
1 answer

SaveFileDialog.ShowDialog not showing on a form from .dll

I have a windows form that contains a SaveFileDialog as a component. This form is called from a library (.dll). When you click on btnExport you should see the save file dialog window. My problem is that SaveFileDialog1.ShowDialog doesn't show any…
-1
votes
1 answer

How do i save a file in fastcoloredtextbox?

I'm developing a syntax editor in C# where you can write code in the FastColoredTextBox component, then saving it as a .html file. However, I have the code for the Save As option. The only problem I have is when the user saves the .html file, the…
Robin
  • 127
  • 10
-1
votes
1 answer

SaveFileDialog producing unrecognized character

My program is supposed to create a text file, but it is adding invisible unrecognized char(s) to the beginning of the text file. I can only see the invisible unrecognized char(s) when scanned. I was able to get the char(s) to go away by opening with…
user7957951
-1
votes
1 answer

Downloader not working

Imports system.net Public Class Form1 Private Sub cmdsave_Click(sender As Object, e As EventArgs) Handles cmdsave.Click SaveFileDialog.Filter = "All files (*.*)|*.*" ''"EXE (*.exe) |*.exe |JPEG (*.jpg)|*.jpg | MP3 (*.mp3)|*.mp3…
CholoBoy
  • 159
  • 2
  • 14
-1
votes
2 answers

Save-file dialog is throwing an exception

I have a bit of a problem with my text editor program with the open dialog,it works perfectly when you actually select a file but if you cancel out it throws an exception as shown: openFileDialog1.ShowDialog(); if…
-1
votes
2 answers

Save text from rich text box with C#

This question has been answered. I've improved the code a bit (at least I think so). It now reminds of the aceepted answer to the question Open file in rich text box with C#. If I haven't made any mistakes (which I may have), the code should save a…
matsolof
  • 2,665
  • 3
  • 18
  • 17
-1
votes
1 answer

how to save an image from a picturebox vb

I am interested in vb and am confused how to save the contents of a Picturebox as a png file when button1 is clicked. When I try to do it now, it produces the error I show below. I can't figure out how to fix this because I'm new to using visual…
Jake t
  • 141
  • 2
  • 13