开发者

Reordering Treenodes in C#.NET

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜