OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.FileName = ""; openFileDialog1.Filter = "image files|*.bmp;*.jpg;*.png"; openFileDialog1.Title = "选择图像"; DialogResult res = openFileDialog1.ShowDialog(); if (res == DialogResult.OK)
{ string fielname = openFileDialog1.FileName.ToString(); string path = System.Windows.Forms.Application.StartupPath; File.Copy(fielname, path + "/qq/jijife.pcx"); }
转载于:https://www.cnblogs.com/MZB-/archive/2012/02/28/2371864.html