拖放-用户界面查询
c# winforms -我试图通过一些拖放功能来改进我的应用程序。 - 这一切都工作正常 - 但我想在表单被拖动作为放置目标时显示一个带有诸如“Drop Here”之类的文本的“框”。当拖动进入表单时,我可以让图片框以这种方式显示,但是图片框不会接受拖放。
投放数据将是一个文件或一个网址 - 我再次可以管理其标识,我唯一需要做的就是让图片框接受投放,但这似乎是不可能的,
谢谢
c# winforms -I am trying to improve my app by having some drag drop functionality. - This is all working fine - but i would like to show a "Box" with text such as "Drop Here" when the form is dragged over as a target for the drop. i can get the picture box to display in that manner when drag enters the form, however the picture box will not accept the drop.
The drop data will either be a file or a web address - again i can manage the identification of that, the only thing i need to do is to get the picture box to accept the drop, and that does not appear to be possible
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一个简单的示例,将标签放置在文本框的顶部。将标签的可见性设置为 false。
这里 TextBox 的名称是 FolderTextBox,我们的标签是 ShowHelpLabel 。
上面的完整源代码是一个简单的实用程序。
A simple example, place a Label on top of a TextBox. Set visibility of the Label to false.
Here the TextBox name is FolderTextBox and our label is ShowHelpLabel.
Full source for above which is a simple utility.