如何使用C#中的Windows窗体从用户接受文件或获取其名称 [英] how to accept a file or get its name from the user using Windows forms in C#

查看:80
本文介绍了如何使用C#中的Windows窗体从用户接受文件或获取其名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我正在尝试从用户那里接受一个文件名(带有Path),该文件已经存在,然后我需要知道该文件名.请帮助我.

Hello,
I am trying to accept a file name(with Path) , the file already present, from the user.Then i need to know the file name. Please help me on how to do it.

推荐答案

嗨..
使用Openfiledialog控件可以获得文件名

打开文件对话框控件 [ ^ ]
Hi..
Using the Openfiledialog control you can get the file name

Open FIle Dialog Control[^]


这篇关于如何使用C#中的Windows窗体从用户接受文件或获取其名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆