Can anyone tell me if this is possible?
I have populated a TreeView control on a form in the Form Load event. After the view is populated, I test for certain conditions (not available when the TreeView populates) that would require me to change the Parent node of some of the existing nodes.
I've tried using a line of code that I've seen on Microsoft's support page regarding Drag and Drop:
Set Me!TreeView1.nodes.x(i).Parent = Me!TreeView1.nodes(1)
I keep getting a runtime error "Object doesn't support this property or method"
Is it not possible to change a nodes parent after the initial population of the tree? if you can drag and drop, shouldn't this be possible?
thanks
I have populated a TreeView control on a form in the Form Load event. After the view is populated, I test for certain conditions (not available when the TreeView populates) that would require me to change the Parent node of some of the existing nodes.
I've tried using a line of code that I've seen on Microsoft's support page regarding Drag and Drop:
Set Me!TreeView1.nodes.x(i).Parent = Me!TreeView1.nodes(1)
I keep getting a runtime error "Object doesn't support this property or method"
Is it not possible to change a nodes parent after the initial population of the tree? if you can drag and drop, shouldn't this be possible?
thanks