开发者

Reordering Treenodes in C#.NET

开发者 https://www.devze.com 2022-12-08 22:22 出处:网络
I have a Visual Studio 2005 C#.NET GUI application. I want to provide the flexibility to reorder the treenodes in the treeview just by dragging and dropping them wherever desired. Is that possible by

I have a Visual Studio 2005 C#.NET GUI application. I want to provide the flexibility to reorder the treenodes in the treeview just by dragging and dropping them wherever desired. Is that possible by using any property of the treeview class? Or do I have to do it the hard way by writing events for mouseup and then sensing th开发者_开发问答e dragging of the node etc etc. Any help would be apreciated.

Thanks, Viren


There's better events than mouseup that make this kind of thing easy. This KB article should give you some idea. Read the documentation for the TreeView events that begin with drag for more info.

0

精彩评论

暂无评论...
验证码 换一张
取 消