Click here to Skip to main content
16,017,907 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: find word editor using API Pin
Dave Kreskowiak30-Jun-05 2:25
mveDave Kreskowiak30-Jun-05 2:25 
GeneralRe: find word editor using API Pin
MohammadAmiry28-Jun-05 4:21
MohammadAmiry28-Jun-05 4:21 
GeneralRe: find word editor using API Pin
Anonymous28-Jun-05 17:15
Anonymous28-Jun-05 17:15 
GeneralRe: find word editor using API Pin
Dave Kreskowiak29-Jun-05 0:40
mveDave Kreskowiak29-Jun-05 0:40 
Generaltreeview control question Pin
aimar_2027-Jun-05 22:05
aimar_2027-Jun-05 22:05 
GeneralRe: treeview control question Pin
Anonymous27-Jun-05 22:40
Anonymous27-Jun-05 22:40 
GeneralRe: treeview control question Pin
aimar_2027-Jun-05 22:52
aimar_2027-Jun-05 22:52 
GeneralRe: treeview control question Pin
Dave Kreskowiak28-Jun-05 2:40
mveDave Kreskowiak28-Jun-05 2:40 
You've got the right idea, you just need a little more thinking about the problem. You need to do two things.

First, you have to create a list of nodes starting from the currently selected node and working your way back up the tree till you find the root. For each step up the tree, you'll add this node to your list. Use the current node's Parent property.

Second, the code you posted is almost correct. You can then iterate through all the node, and child nodes if your requirements dictate it, and compare it to the nodes in your list. If the node is in the list, DON'T collapse it. If it isn't in the list, well, you know what to do...


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: treeview control question Pin
aimar_2028-Jun-05 5:14
aimar_2028-Jun-05 5:14 
GeneralRe: treeview control question Pin
Dave Kreskowiak28-Jun-05 5:31
mveDave Kreskowiak28-Jun-05 5:31 
GeneralRe: treeview control question Pin
aimar_2028-Jun-05 5:41
aimar_2028-Jun-05 5:41 
GeneralBest place to load a control Pin
peepys27-Jun-05 21:59
peepys27-Jun-05 21:59 
GeneralRe: Best place to load a control Pin
toxcct28-Jun-05 0:32
toxcct28-Jun-05 0:32 
Generalprint a form Pin
Anonymous27-Jun-05 21:32
Anonymous27-Jun-05 21:32 
GeneralTo know who are open my file tru LAN Pin
vincentkhoosiongleng27-Jun-05 21:32
vincentkhoosiongleng27-Jun-05 21:32 
GeneralRe: To know who are open my file tru LAN Pin
Dave Kreskowiak28-Jun-05 2:34
mveDave Kreskowiak28-Jun-05 2:34 
GeneralRe: To know who are open my file tru LAN Pin
vincentkhoosiongleng28-Jun-05 3:44
vincentkhoosiongleng28-Jun-05 3:44 
GeneralRe: To know who are open my file tru LAN Pin
Dave Kreskowiak28-Jun-05 4:11
mveDave Kreskowiak28-Jun-05 4:11 
GeneralRe: To know who are open my file tru LAN Pin
vincentkhoosiongleng28-Jun-05 13:37
vincentkhoosiongleng28-Jun-05 13:37 
GeneralRe: To know who are open my file tru LAN Pin
Dave Kreskowiak28-Jun-05 15:20
mveDave Kreskowiak28-Jun-05 15:20 
GeneralRe: To know who are open my file tru LAN Pin
vincentkhoosiongleng28-Jun-05 16:57
vincentkhoosiongleng28-Jun-05 16:57 
GeneralMethod hiding!! Pin
myousufq27-Jun-05 21:00
myousufq27-Jun-05 21:00 
GeneralRe: Method hiding!! Pin
Christian Graus27-Jun-05 21:07
protectorChristian Graus27-Jun-05 21:07 
Generaloverloading .net control's property Pin
peepys27-Jun-05 17:28
peepys27-Jun-05 17:28 
GeneralRe: overloading .net control's property Pin
Christian Graus27-Jun-05 18:14
protectorChristian Graus27-Jun-05 18:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.