Treeview ExpandAll not working

  • Thread starter Thread starter Emma Middlebrook
  • Start date Start date
E

Emma Middlebrook

Hi,

I can't seem to get ExpandAll() to recurse through and expand all my
nodes and children in a tree view.

I don't have a single root node, I have several at the root level and
then they have children e.g.:

Level1a
Level2a
Level2aa
Level1b
Level2b
Level2bb
Level1c

I would expect expandall() to show me all the above but all I get is
Level1a, Level1b, Level1c being displayed...

Is there something I am not doing?

Many thanks,

Emma Middlebrook
 
I've solved this problem. I was interacting with my treeview control in
the constructor of my form and nothing was working here.

Only interactions made once the form was completely loaded were
sticking. I resolved this by adding an event handler for the form event
Load. I moved the code interacting with the treecontrol to this
function and everything started to work.
 
Back
Top