如何将文件从winexplorer拖放到文本框中? [英] How to drag drop file/s into a textbox from winexplorer?
本文介绍了如何将文件从winexplorer拖放到文本框中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我正在尝试使用vb6将drop file / s拖放到Windows资源管理器的文本框中。我无法弄清楚如何在运行时创建文本框,具体取决于我为拖拽目的选择了多少文件。有没有办法在vb6中做到这一点以及如何做?
非常感谢节日快乐。
Hello , I''m trying to drag drop file/s into a textbox from windows explorer using vb6. I can''t figure it out how to create textboxes at runtime depending on how many file selection did I make for dragdrop purposes. Is there a way to do that in vb6 and how?
Thanks alot and happy holidays.
推荐答案
展开 | 选择 | Wrap | 行号
Hello Geur先生,
感谢您的代码。但似乎只能将所有选定的文件复制到一个文本框中。如果这是vbNewLine的目的,它甚至没有创建一个新行?
要求是能够将多个文件(例如3个文件)拖到我的vbform中并删除它们运行时3个文本框中的文件显示其文件名。我不仅限制拖动到3files,而是更多。这可能是先生吗?
谢谢!
Hello Sir Geur,
Thanks for the code. But It seemed like it was only able to copy all the selected files in one textbox. It did not even create a new line if that is the purpose of vbNewLine?
The requirement is to be able to drag multiple files ( ex. 3 files ) into my vbform and drop those files in 3 textboxes at runtime displaying their filenames. I do not limit the dragging to 3files only but even more. Is that possible sir?
Thanks!
它只显示varchar符号来分隔所选文件。我想将每个选定的拖动文件显示到不同的文本框中。
It only showed the varchar sign to separate the selected files. I would want to display each selected dragged file into different textboxes.
这篇关于如何将文件从winexplorer拖放到文本框中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文