在拖放操作上显示文本而不是/和光标一样 [英] Displaying text instead of/as well as the cursor on drag and drop action
本文介绍了在拖放操作上显示文本而不是/和光标一样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以告诉我如何使用一些自定义文本在拖放操作上替换/扩充光标。
这是C#。我已经实现了拖放操作,它可以正常工作但是我想在光标处显示我拖动的对象的一些细节。
谢谢
我尝试过:
我看过draglocationlabel,但无法理解它应该做什么或如何让它可见。这是我应该使用的吗?
Could someone tell me how I can replace/augment the cursor on a drag and drop operation with some custom text.
This is C#. I have implemented drag-and-drop and it works Ok but I would like to show, at the cursor, some details of the object I am dragging.
thanks
What I have tried:
I have looked at "draglocationlabel " but cannot fathom what it is supposed to do or how to make it visible. Is this what I should be using?
推荐答案
请勿尝试更改光标:
Control.GiveFeedback Event(System.Windows.Forms) [ ^ ]给出了基础知识,但是高级版本: winforms - 我可以为C#Windows应用程序拖放功能选择自定义映像吗? - 堆栈溢出 [ ^ ]让你使用图像(就像资源管理器一样)
Don't, try changing the cursor instead:
Control.GiveFeedback Event (System.Windows.Forms)[^] gives the basics, but the advanced version: winforms - Can I choose a custom image for C# Windows Application Drag Drop functions? - Stack Overflow[^] lets you use an image (just like Explorer does)
你的意思是这个 [ ^ ]?
这并不容易做。
You mean like this[^]?
It's not exactly easy to do.
这篇关于在拖放操作上显示文本而不是/和光标一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文