开发者

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);
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜