首页 > 编程知识 正文

savefilepath,saves文件夹

时间:2023-05-05 12:33:53 阅读:59090 作者:3307

1 savefiledialogsavefiledialog=newsavefiledialog (; 2 //初始化路径3 save file dialog.initial directory=环境. get folderpath (环境. special folder.desktop ); 4 save file dialog.filter=' Microsoft excel (*.xls )|*.XLS ); 如果5 //文件已存在,是否复盖6 save file dialog.overwrite prompt=true; 7 save file dialog.filename=filename; 9if(savefiledialog.showdialog )==DialogResult.OK ) 11 ) 12 filename path=save file dialog.filename.tostring 13 ) 13 17 }

参考: https://www.cn blogs.com/tommy-Huang/p/4506597.html (使用c# (winform )中的保存文件诊断程序控件) )

转载于:https://www.cn blogs.com/- jwj/p/10710502.html

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。