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

FileChooser method showSaveDialog( ) does not save file javafx?

How does the showSaveDialog( ) method work? I know it returns the selected file but why does it not save the file? Below is an extract of code I found online. buttonSave.setOnAction(new EventHandler() { @Override public…
user2033259
  • 29
  • 2
  • 9
0
votes
0 answers

Access real directory path from SaveFileDialog in Silverlight

I have an issue with Silverlight application and SaveFileDialog. Basically I'm using SaveFileDialog in order to get from user path where he wants to save file and what is the file name. Then I'm passing that path to an API of other application(I'm…
Marko
  • 1,874
  • 1
  • 21
  • 36
0
votes
2 answers

File not getting saved in specified location in winforms c#

Eventhough i specify a different location the file gets saved in mydocuments. How to resolve this issue. Pls share your ideas if any.Here is the code. if (externalButton.Checked == true) { // int i = 1; …
user1665707
  • 615
  • 3
  • 11
  • 24
0
votes
2 answers

Unexpected characters in saved file using SaveFileDialog

Code: private void btnSaveFile_Click(object sender, EventArgs e) { listBox1.MultiColumn = true; SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = "Text File|*.txt"; if (sfd.ShowDialog() == DialogResult.OK) ; { …
0
votes
1 answer

modify or create SaveFile dialog in wpf or winform

For my application I would like to use the SaveFile dialog box. on SaveFile dialog i just want to let the user select location to save and hide the file name and save as type. How do I achieve this? can I still use the save File dialog box that is…
IamaC
  • 357
  • 1
  • 10
  • 23
0
votes
1 answer

Textbox not displaying given string

The title of my question seems simpler then my problem really is. What I am doing is trying to put a string into my textbox, but it won't go in. I'm doing this by passing the string from one class to another and then another. Sort of trickling down…
woods
  • 243
  • 4
  • 10
  • 20
0
votes
2 answers

File does not exist verify if file name exist SaveFileDialog?

I want to save a file using the SaveFileDialog control. Why does the file need to already exist in order to save it? This is the code I am using: string month = dateTimePicker1.Value.Month.ToString(); string year =…
Saqi
  • 151
  • 2
  • 5
  • 12
0
votes
1 answer

VC++ iostream/savefiledialog error

I'm using the SaveFileDialog class example to combine use create a text file in a user defined directory. Here's the conflicting part of my code: private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { …
H_squared
  • 1,251
  • 2
  • 15
  • 32
0
votes
1 answer

'Random_Number_File_Writer.Form1' does not contain a definition for 'saveFileDialog1_FileOk'

'Random_Number_File_Writer.Form1' does not contain a definition for 'saveFileDialog1_FileOk' and no extension method 'saveFileDialog1)_FileOk' accepting a first argument of type 'Random_Number_File_Writer.Form1' could be found (are you missing a…
Heather T
  • 323
  • 1
  • 10
  • 20
0
votes
1 answer

save a chart together a txt file with savedialog

I have a listbox, I save it to a txt file with following code. String[] array = new String[listBox2.Items.Count]; listBox2.Items.CopyTo(array, 0); Microsoft.Win32.SaveFileDialog saveFileDialog1 = new…
Oktay
  • 127
  • 1
  • 2
  • 15
0
votes
1 answer

Upload file to ASP.Net Server without using FileUpload Control

In my ASP.Net website I want to upload a file onClickEvent of LinkButton. I dont have a space to show a FileUpload Control. But if we use fileUpload control it is easy to upload a file using: String filename =…
Prasad Jadhav
  • 5,090
  • 16
  • 62
  • 80
0
votes
1 answer

Show "save dialog" on top of the "main program" in C# when clicked on taskbar in Windows

Problem: When a simulation is complete a "save dialog" pops up. When clicked on the "main program" in the Windows taskbar, both the "main program" and the "save dialog" should come on top of other open windows. Right now just the "main program" is…
Fredrik
  • 141
  • 2
  • 5
0
votes
3 answers

System.Windows.Forms.SaveFileDialog sets FileName to file title without path. Why?

I see strange behavior of SaveFileDialog. I expect that FileName property contains full path to new file. And I don't have idea how to know where to save file. Dialog object dump follows (after user selected file): _autoUpgradeEnabled true …
Vitalii
  • 4,434
  • 4
  • 35
  • 77
0
votes
1 answer

Reading a local file, encoding to base64, I would like to give the user an option to save the result to file

I have a webpage encoding a local file into Base64, and would like to give the user an option to save the result - now residing in a html element - without going back to the server. I could post the data to a back-end webpage, save as file, and…
Ketil Duna
  • 1
  • 1
  • 1
0
votes
1 answer

Save file dialog for local machine in mvc

wondering, if someone can help. I've written this code, which will generate an CSV file spreadsheet and save it to a specified location. I want to display a "Save as" dialogue box by reading the file from the stored location and then asking user,…
user1561256
  • 11
  • 1
  • 3