Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default moving treeview node

Hi experts,

From Stephen Bullens dragdropexample I learned how to move nodes in a
treeview using drag and drop in the treeview.
All I have to do is give a node a new parentnode.
This code is used to do this:

Set moDragItem.Parent = oParent

When I do this the draged node becomes the first childnode of its new
parent.
When I add a node it becomes the last childnode of the parent.

I want to move a node to a specific position between other childnodes, by
drop while pressing the control-button.

I tied this with the following code:

Set moDragItem.Next= oParent
or
Set moDragItem.Previous= oParent
or
Set oParent.Previous= moDragItem
or
Set oParent.Next= moDragItem

None gave me the expected result.

Because the childnodes represent different types, it is not an option to add
a node en rename alle the childnodes.
Does anyone have a solution to this issue?

Kind reagrds Ernst

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Treeview, avoid selecting node on keydown or up RB Smissaert Excel Programming 0 November 4th 05 04:37 PM
treeview node tag hold array? RB Smissaert Excel Programming 5 June 27th 05 12:32 AM
delete a node in treeview mark Excel Programming 1 May 15th 05 04:10 AM
How to add a sub-node of a treeview control JohnDing[_2_] Excel Programming 1 December 20th 04 09:30 AM
TreeView: add more than one node to nodes collection Peter[_25_] Excel Programming 3 September 5th 03 12:15 PM


All times are GMT +1. The time now is 11:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"