Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 157
  • Last Modified:

Please help

Hi,

in TreeView , if I add or delete item ,are there any property or any other way to refresh the TV data directly without clearing it and executing my TV load code once again each time I add or delete ?

Thanx
0
toni2002
Asked:
toni2002
1 Solution
 
y2kswCommented:
Nope. But you might create a user control with this capability and load/save the static contents from/to the PropertyBag (PropertyBag.Contents in VB6).
0
 
GouGouCommented:
To Add:
TreeView1.Nodes.Add "strParentKey", tvwChild, "UniqueKey", "NodTxt"

To delete:
TreeView1.Nodes.Remove(Index)

This will help
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now