|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
HI all,
i m making expanding and collapsing treeview in compact framework. There is no event present for knowing whether treenode has collapsed when it is collapsed back. How to know that while clicking on that node.....it is collapsed. Thanx in advance for ur replies. |
|
#2
|
|||
|
|||
|
You mean this??
this.treeView1.Nodes[0].IsExpanded
__________________
Tivo Codes, Hacking the Tivo, and Adding a Second Drive to Your Tivo. All this information at www.TivoSpy.com ! |
|
#3
|
|||
|
|||
|
you can check the condition by:
TreeView1.Nodes(0).IsExpanded=False which means the treeview node is collapsed |
|
#4
|
|||
|
|||
|
Quote:
That is Ok...man i need to change the image when a treeview is collapsed, so i need to know when the collapse event is fired, and in that event method i can change the image index....... But there is no event which gets fired, when we collapse the treeview?? Did u get it now, what i want?? |
|
#5
|
|||
|
|||
|
Quote:
I need to change image when i collapse treeview....when could i check this condition?? i can not do anything through this condition.......becoz first of all i need to know that when the treeview is collapsed..........but i m not able to raise any event when a treeview is collapsed....... did u get it now?? |
|
#6
|
|||
|
|||
|
when you collapse the Treeview1 with mouse, the event fired is:-
Treeview1_AfterCollapse, where you can change the image. In the same way, when you Expand the Treeview1 with mouse, the event fired is:- Treeview1_AfterExpand, where you can change the image again. Hope this helps.... |
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > Expand Collapse Treeview |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|