Common Dialog Browser
I am working开发者_运维百科 in a project intended for I need to provide Job number in front of the file name. To do that I need to track the Click event on Save/Open button on the Common dialog. If I could then I could provide Job Number in front of the filename and then could send message to save the file.
How Could I detect if we click on the Save/Open button of our windows click event?
Note: I have implemented the IShellBrowser
Try this:
if (SaveFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
FileInfo f = new FileInfo(SaveFileDialog.FileName);
SaveFile(f.DirectoryName + "\\" + jobNumber + f.Name);
}
精彩评论