请选择 进入手机版 | 继续访问电脑版

Hello Mat

 找回密码
 立即注册
查看: 8221|回复: 1

选择一个文件夹

[复制链接]

1294

主题

1520

帖子

110

金钱

管理员

Rank: 9Rank: 9Rank: 9

积分
22633
发表于 2019-5-11 19:00:26 | 显示全部楼层 |阅读模式
  1. FolderBrowserDialog FilesPath = new FolderBrowserDialog();
  2.             if (FilesPath.ShowDialog() == System.Windows.Forms.DialogResult.OK)
  3.             {
  4.                 FilePath = FilesPath.SelectedPath;
  5.             }
复制代码


算法QQ  3283892722
群智能算法链接http://halcom.cn/forum.php?mod=forumdisplay&fid=73
回复

使用道具 举报

1294

主题

1520

帖子

110

金钱

管理员

Rank: 9Rank: 9Rank: 9

积分
22633
 楼主| 发表于 2019-7-18 22:36:19 | 显示全部楼层
初始化一个已知路径:
  1.             FolderBrowserDialog FilesPath = new FolderBrowserDialog();
  2.             if (this.tB_InitPath.Text != null)
  3.             {
  4.                 FilesPath.SelectedPath = this.tB_InitPath.Text.ToString();
  5.             }
  6.             if (FilesPath.ShowDialog() == System.Windows.Forms.DialogResult.OK)
  7.             {
  8.                 InitFilePath = FilesPath.SelectedPath;
  9.             }
复制代码



算法QQ  3283892722
群智能算法链接http://halcom.cn/forum.php?mod=forumdisplay&fid=73
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Python|Opencv|MATLAB|Halcom.cn ( 蜀ICP备16027072号 )

GMT+8, 2024-4-19 01:40 , Processed in 0.203094 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表