从指定的文件夹添加,查看和删除 [英] Add, View and Delete from a Specified Folder

查看:74
本文介绍了从指定的文件夹添加,查看和删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Winfroms的初学者.我正在使用C#和Visual Studio2010.

表单中的控件:一个TextBox和一个ListBox
用于-浏览,添加,查看,删除,全部清除和上传(到指定文件夹)的按钮


我的任务是创建一个屏幕以及用户可以从中添加,查看和删除附件的功能.

附件可以是任何类型的txt,pdf,doc,gif,音频,视频.....


单击浏览"按钮后,用户应该能够浏览文件,并且一旦用户浏览并选择了文件并单击添加".该文件应保存在指定文件夹"中.

单击查看"按钮时,应将用户附件文件显示给用户.

单击删除附件"按钮后,应从该文件夹中删除附件.


我对编程很陌生...有人可以帮我吗..

将等待回复....
感谢

I am a beginner in Winfroms. I am using C# , Visual Studio 2010.

Controls in Form: A TextBox and a ListBox
Buttons for - Browse, Add, View, Remove, Clear All and Upload(to a Specified Folder)


I am given a task to create a screen along with the functionality from which the user should be able to Add, view and remove an attachment.

The attachment can be any kind of file txt, pdf, doc, gif, audio, video .....


On clicking the Browse Button the user should be able to browse the file and once the user browses and selects the file and clicks ADD. The file should get saved in a Specified Folder.

On click of the the View Button, the user attachement file should be shown to the User .

On clicking of the Remove Attachement Button , the attachement should be deleted from that Folder.


I am very new to programing... Can any one please help me out with this..

will be waiting for the reply....
thanks

推荐答案

有什么努力吗?这看起来像典型的作业/作业.永远不要鼓励别人去做你的作业.

如您所说,您是新手.您可以开始查看各种教程/文档以提出您的作业.如果您被困在某个地方,请回来,应该有人可以为您提供帮助.无论如何,这里有一些链接可以为您指明方向.

1.)基本的C#示例 [如何:创建C#Windows窗体应用程序 [ ^ ]

3.)如何:复制,删除和移动文件和文件夹 [ ^ ]
Any effort? This looks like typical homework/assignment. It is never encouraged that some else does your assignment.

As you said, you are beginner; you can start looking at the various tutorials/documentation to come up with your assignment. If you are stuck somewhere please come back and someone should be able to help you. Anyway, here are some links which could give you direction.

1.) Basic C# examples[^]

2.) How to: Create a C# Windows Forms Application[^]

3.) How to: Copy, Delete, and Move Files and Folders[^]


这篇关于从指定的文件夹添加,查看和删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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