110,536
社区成员
发帖
与我相关
我的任务
分享
OpenFileDialog dlg=new OpenFileDialog();
dlg.Filter="图象文件|(JPeg,Gif,Bmp,et.)|*.jpg;*.jpeg;*.gif;*.bmp;*.tif;*.tiff;*.png|JPeg文件(*.jpg;*.jpeg)|*.jpg;*.jpeg|GIF文件(*.gif)|*.gif|BMP文件(*.bmp)|*.bmp|Tiff文件(*.tif;*.tiff)|*.tif;*.tiff|Png文件(*.png)|*.png|所有文件(*.*)|*.*;
string strPath;
if(dlg.ShowDialog==DialogResult.OK)
strPath=dlg.FileName;