Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004
    Location
    Kampala, Uganda
    Posts
    32

    Question Unanswered: Deleting a node from a TreeView

    Anybody know how to delete a node from the treeview control?

    I've got;
    tvwMain.Nodes.Clear
    but that deletes the whole tree. I cant find anything to delete just a specific node (and all its children).

    Is is possible?

  2. #2
    Join Date
    Sep 2003
    Location
    Caldes de Malavella, Spain
    Posts
    244
    Use MyForm!NameOfTreeviewControl.Nodes.Delete x, where "x" is the key or index of the node you wish to delete.
    Andy Briggs
    Elmhurst Solutions Limited
    Database Development and Consultancy
    http://www.elmhurstsolutions.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •