Solved

Remove a Node from a Treeview.

Posted on 1998-11-23
1
128 Views
Last Modified: 2012-05-04

Is there a way to remove a tree node by it KEY?
That includes all of its sub nodes too.

I can not do it the normal way as the user is not
selecting the node and I have no idea what number
the user has indexed it.

Please Help.
0
Comment
Question by:vienna
1 Comment
 
LVL 13

Accepted Solution

by:
Mirkwood earned 20 total points
ID: 1446479
call treeview1.nodes.remove (treeview1.nodes(key).index)
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question