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 WindowsFormsApplication5
{
    public partial class Form1 : Form
    {

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog fb = new FolderBrowserDialog();
            if(fb.ShowDialog()==DialogResult.OK)
                textBox1.Text = fb.SelectedPath;
        }
    }
}

 

相关文章:

  • 2021-07-13
  • 2021-12-30
  • 2021-12-14
  • 2022-12-23
  • 2022-03-03
  • 2021-12-23
  • 2022-02-13
  • 2022-12-23
猜你喜欢
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-08-22
  • 2021-06-03
  • 2021-12-19
相关资源
相似解决方案