Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorting TreeView Control
Message
De
12/04/2002 05:45:26
 
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00643917
Message ID:
00644133
Vues:
12
Sorted property for TreeView control sorts only root nodes. If you want to sort child nodes, set Sorted property if their parent node. In your case:

Dim oNode As Node
Set oNode = TreeView1.Nodes.Add(, , "root", "root")
Set oNode = TreeView1.Nodes.Add("root", tvwChild, , "b")
Set oNode = TreeView1.Nodes.Add("root", tvwChild, , "a")
TreeView1.Nodes("root").Sorted = True

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform