在Treeview中的节点之间拖放节点 [英] Drag-Drop nodes in between nodes in Treeview

查看:69
本文介绍了在Treeview中的节点之间拖放节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在使用汤姆约翰的拖拽树视图 << [a href =http://www.codeproject.com/Articles/8995/Introduction-to-TreeView-Drag- and-Drop-VB-NETtarget =_ blanktitle =New Window>发布在这里]哪作得很好(谢谢!)。但是,我希望添加能够在其他节点之间删除节点的功能,我不确定从哪里开始。因此,当我拖动一个节点时,在鼠标悬停的两个节点之间会显示一条代表放置目标的线。这可能吗?我假设它会在DragOver事件中完成吗?



在此先感谢!! :-)



P.S.我正在使用VB.Net

Hi,

I am using Tom John''s Drag Drop Treeview [posted here] which works great (Thanks!). However I wish to add functionality to be able to drop nodes in between other nodes and I am unsure of where to start with this. So something like when I drag a node a line representing the drop target is shown between the two nodes where the mouse if hovering. Is this possible? I assume it would be somehting which is done in the DragOver event?

Thanks in Advance!! :-)

P.S. I am using VB.Net

推荐答案

您是否愿意询问本文作者的建议?找到文章下方的评论和讨论部分,并使用添加评论或问题来征求意见。作者将收到通知并有机会回复。



此功能并不是什么大不了的事,但如果从这些组件开始,那就是最好的询问作者。



-SA
Would you rather ask the advice from the author of this article? Locate the section "Comments and Discussions" below the article and use "Add a Comment or Question" to ask for advice. The author will get a notification and a chance to reply.

This functionality is not a big deal, but if you start from this components, it''s the best to ask its author.

—SA


这篇关于在Treeview中的节点之间拖放节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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