hollow,欢迎来到爱不绝迹的博客园!

上传

  1. private void button1_Click(object sender, EventArgs e)
  2.         {
  3.             //判断是否打开对话框
  4.             if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
  5.             {
  6.                 //文本框获取打开的文件的路径
  7.                 this.textBox1.Text = this.openFileDialog1.FileName;
  8.             }
  9.         }
posted @ 2015-05-12 20:25  爱不绝迹  阅读(170)  评论(0编辑  收藏  举报