【C#学习笔记】打开对话框并返回打开文件所在路径

2021-09-10 12:12

阅读:732

标签:ica   blog   partial   one   drawing   generic   oid   open   init    using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication3 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { OpenFileDialog dig = new OpenFileDialog(); if (dig.ShowDialog() == DialogResult.OK) textBox1.Text = dig.FileName; } } }  【C#学习笔记】打开对话框并返回打开文件所在路径标签:ica   blog   partial   one   drawing   generic   oid   open   init   原文地址:http://www.cnblogs.com/tiandsp/p/7440447.html


评论


亲,登录后才可以留言!