添加图片

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

posted @ 2012-02-28 17:28  迈着步_  阅读(140)  评论(0编辑  收藏  举报