本文版权归点A点C和博客园共有,欢迎转载,但必须保留此段声明,并给出原文连接,谢谢合作!!!

2013年8月12日

C#中,打开openFileDialog后,如何将选中的文件路径显示在一个文本框(textBox)中

摘要: OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.Filter = "文档(*.doc;*.docx)|*.doc;*.docx"; if (openFileDialog1.ShowDialog() == DialogResult.OK) { if (openFileDialog1.FileName != "") { this.textBox... 阅读全文

posted @ 2013-08-12 17:51 点A点C 阅读(5814) 评论(0) 推荐(0) 编辑

c# picturebox控件显示本地图片和显示网上的图片

摘要: 显示本地图片pictureBox1.Image=Image.FormFile(@"图片路径");显示网络图片pictureBox1.ImageLocation = @"图片网址"; 阅读全文

posted @ 2013-08-12 17:18 点A点C 阅读(15941) 评论(0) 推荐(0) 编辑

c#选择打开本地图片,并在picturebox上显示

摘要: OpenFileDialog openfile = new OpenFileDialog(); if (openfile.ShowDialog() == DialogResult.OK && (openFileDialog1.FileName != "") { picturebox1.ImageLocation = openfile.FileName; textbox.Text = openfile.FileName; } openfile.Dispose(); 阅读全文

posted @ 2013-08-12 17:15 点A点C 阅读(15665) 评论(0) 推荐(1) 编辑

导航