拖放文本文件 [英] Drag and drop text files

查看:88
本文介绍了拖放文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作一个程序,我需要能够将文本文件拖放到文本框中并显示文件的内容或文本,代码需要在VB.Net中.

帮助将不胜感激! :-D :-D :-D

Hi I''m trying to make a program and I need to be able to drag and drop text files into a textbox and display the contents or text of the file, code needs to be in VB.Net.

help will be appreciated! :-D :-D :-D

推荐答案

拖放并非易事,代码不止一个地方.但是,我想几乎所有关于该主题的教程都会向您展示如何做到这一点.为什么不搜索代码项目中的文章,浏览一篇文章,然后在遇到问题时问我们(或作者)一个具体问题?
Drag and drop is not trivial, the code goes in more than one place. However, I would imagine that almost every tutorial on the subject will show you how to do this. Why not search code project for articles, work through one, and ask us ( or the author ) a specific question when you''re stuck ?


只是在此链接上发生过.看起来您将从拖放操作中获取文件位置,然后打开文件并将其读入文本框或其他控件中.

使用文件拖放的示例 [
Just happened across this link. Looks like you would get the file location from the dragdrop operation, then open the file and read it into your textbox or other control.

Example of Drag and Drop using Files[^]


这篇关于拖放文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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