Treeview - AfterExpand/BeforeExpand

D

Daniel Moth

BeforeExpand is supported so hook in code (e.g. in your form load event):
treeView1.BeforeExpand += new
TreeViewCancelEventHandler(treeView1_BeforeExpand);
AddHandler treeView1.BeforExpand, AddressOf treeView1_BeforeExpand

AfterExpand is not supported in CF 1.0 (it is in CF 2.0 along with
Before/AfterCollapse). You could handle the AfterSelect event and check to
see if the treenode(s) is/are expanded

Cheers
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top