2022
05-30
05-30
C# SaveFileDialog与OpenFileDialog用法案例详解
1.OpenFileDialogprivatevoidbtnOpen_Click(objectsender,EventArgse){OpenFileDialogofd=newOpenFileDialog();ofd.InitialDirectory=@"C:\Users\LWP1398\Desktop";//设置初始路径ofd.Filter="Excel文件(*.xls)|*.xls|Csv文件(*.csv)|*.csv|所有文件(*.*)|*.*";//设置“另存为文件类型”或“文件类型”框中出现的选择内容ofd.FilterIndex=2;//设置默认...
继续阅读 >