.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

SaveFileDialog

Posted By:      Posted Date: October 07, 2010    Points: 0   Category :Windows Application
 

I click a button then promopt a save as dialog box ,after select the location to save then click oK, i need to export a lot of data to csv file,
when the process is in progress, the save as dialog is still here, how can i after clicking OK button,then close the dialog immediately even the process is not end.

most likely i also want to prompt another form to show te progress status percentage.

SaveFileDialog SFD=new SaveFileDialog();
if(SFD.ShowDialog()==DialogResult.OK){
//export a lot of data to csv
}



View Complete Post


More Related Resource Links

AddExtension doesn't work for SaveFileDialog if the FileName with another registered extenstion

  

Hi experts,

I have one instance of System.Windows.Forms.SaveFileDialog, set its defaultExt and let AddExtension to true. You can see my sample code below. So when user input the file name, it will add the defaultExt automatically.

While it works most of the time, even user input a name with one unexisted extension, eg.

AddExtension doesn't work for SaveFileDialog if the FileName with another registered extenstion

  

Hi experts,

I have one instance of System.Windows.Forms.SaveFileDialog, set its defaultExt and let AddExtension to true. You can see my sample code below. So when user input the file name, it will add the defaultExt automatically.

While it works most of the time, even user input a name with one unexisted extension, eg.

SaveFileDialog Related Query

  

Hi All,

I have a Winform which uses SaveFileDialog to save a file. Everything is fine except that file is saved with only one sheet & the name same as filename.

I want to have the sheet name as Sheet1 and also want to install extra sheets into excel with names Sheet2,Sheet3 etc.

Please suggest something with example. Thanks in advance!!!