.net 打开文件


本文摘自PHP中文网,作者巴扎黑,侵删。

1

2

3

4

5

6

7

8

9

OpenFileDialog^ dlgOpenFile = gcnew OpenFileDialog ();

String^ fileName;

dlgOpenFile->InitialDirectory = "D:\\";

dlgOpenFile->Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";

dlgOpenFile->FilterIndex = 1;

dlgOpenFile->RestoreDirectory = true ;

dlgOpenFile->ShowDialog();

fileName = dlgOpenFile->FileName;

TB_Path->Text = fileName;

相关阅读 >>

.net页面局部更新引发的思考

正则表达式抓取网页信息

十大开源的.net用户界面框架

关于c#视频教程的资源分享

浅谈.net core开发日志中edge.js是什么?如何用?

介绍c#中的堆和栈

新手学习.net编程计划-2(数据库的基础及应用)

.net core 和 .net .framework 相比哪个速度快?

入门级的.net mvc 实例

.net和c#有什么区别

更多相关阅读请进入《.net》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...