从资源管理器中将图像拖到图片框 [英] Drag images on to a Picturebox from Explorer

查看:63
本文介绍了从资源管理器中将图像拖到图片框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

>
我正在寻找一种使用C#将图片从Windows资源管理器拖放到窗体上的Picturebox的方法.

理想情况下,它将调整为图片框的大小,并与表单上的其他文本框详细信息一起保存到数据库.

关于我可以从哪里开始阅读的任何建议.我对拖放没有任何经验,除了我看到的一些代码片段外,我在处理将图片从控件拖到窗体上的控件上时都没有.
感谢所有帮助.

>Hi,
Im looking for a way to drag and drop pictures from windows explorer to a Picturebox on a form using C#.

Ideally it would resize to the picturebox and be saved along with other textbox details on the form, to a database.

Any suggestions as to where I could start reading up for this. I have no experience with drag drop other than a couple of code snippets i have seen dealing with dragging pictures from control to control on the form.
All help is appreciated.

推荐答案

看看 [ ^ ]
它有些旧,但仍然可以使用.

Google-很棒的工具,不是吗?
这是"c#拖放图片框"的第1个结果.
Have a look at this[^]
It''s a bit old, but it''s should still work.

Google - wonderful tool, isn''t it?
This was number 1 result for "c# drag drop picturebox"...


可悲的是没有帮助.

并且必须是旧的,Vis studio不能识别使用语句的一半.
Sadly doesnt help.

and it must be old, Vis studio doesnt recognise half the using statements.


这篇关于从资源管理器中将图像拖到图片框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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