拖放/上传功能 [英] Drag/Drop/Upload Functionallity

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

问题描述

您好,我想知道是否有一种方法可以启用我的

应用程序来接受文件,例如.pdf,当它被放到

文件上时,它会将文件上传到我的数据库或目录。


我正在努力使应用程序尽可能用户友好,并且

就像用户能够将文件放入

屏幕的某个区域,它只会接受该文件并可能会提示是否

是该记录的现有文件数据库。


任何帮助都会得到解决。


-Matt

Hello, I was wondering if there is a way that I can enable my
application to accept a file such as a .pdf that when dropped onto the
document, it will upload the file to my database or a directory.

I am trying to make the app as user friendly as possable and would
just like the users to be able to drop the file into an area of the
screen and it would just accept the document and maybe prompt if there
is an existing file for that record in the database.

Any help would be apperciated.

-Matt

推荐答案

假设这是一个Windows应用程序,问题是

拖放操作,请尝试:

http://www.vbforums.com/showthread.php?t=328593


---

Patrice

" Webbyz" < ma ******* @gmail.comaécritdansle message de news:
11 ******** @ e65g2000hsc.googlegroups。 com ...
Assuming this is a windows application and that the problem is with
drag/drop handling, try :

http://www.vbforums.com/showthread.php?t=328593

---
Patrice
"Webbyz" <ma*******@gmail.coma écrit dans le message de news:
11**********************@e65g2000hsc.googlegroups. com...

您好,我想知道是否有办法让我的

申请接受一个像.pdf这样的文件,当它被放到

文件上时,会把文件上传到我的数据库或目录。


我试图使应用程序尽可能用户友好,并且

就像用户能够将文件放入

屏幕区域一样,它只接受文件并且可能会提示是否

是数据库中该记录的现有文件。


任何帮助都会得到帮助。


-Matt
Hello, I was wondering if there is a way that I can enable my
application to accept a file such as a .pdf that when dropped onto the
document, it will upload the file to my database or a directory.

I am trying to make the app as user friendly as possable and would
just like the users to be able to drop the file into an area of the
screen and it would just accept the document and maybe prompt if there
is an existing file for that record in the database.

Any help would be apperciated.

-Matt






似乎这个例子只显示图片handeling 。但这确实没有任何办法将文件直接吸收到目录或Db中。



It seems like the example shows just picture handeling. But this does
not have any way to absorb the file directly into a directory or Db.


对不起,不确定如果问题也与那些操作有关,或者你是否已经有了b / b已经有了想要添加拖放功能的东西...


复制文件只是请参阅System.IO.File的文档(或者如果VB 2005,我的

命名空间)。

对于BLOB部分,请参阅ADO.NET文档:
http://msdn2.microsoft.com/en-us/ library / 4f5s1we0.aspx


---

Patrice


" Webbyz" < ma ******* @gmail.comaécritdansle message de news:
11 ********************** @ o5g2000hsb.googlegroups.c om ...
Sorry, was not sure if the problem was also with those operations or if you
had already something but wanted to add drag/drop capability...

To copy a file just see the documentation for System.IO.File (or the My
namespaces if VB 2005).
For the BLOB part see the ADO.NET documentation :
http://msdn2.microsoft.com/en-us/library/4f5s1we0.aspx

---
Patrice

"Webbyz" <ma*******@gmail.coma écrit dans le message de news:
11**********************@o5g2000hsb.googlegroups.c om...

>


似乎这个例子只显示图片handeling。但这确实无法将文件直接吸收到目录或Db中。
>

It seems like the example shows just picture handeling. But this does
not have any way to absorb the file directly into a directory or Db.



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

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