Solved

Remove a Node from a Treeview.

Posted on 1998-11-23
1
130 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

733 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