.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 5th, 2004, 04:07 AM
chintan_vaishya chintan_vaishya is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 4 chintan_vaishya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs down Expand Collapse Treeview

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.

Reply With Quote
  #2  
Old April 14th, 2004, 03:38 PM
StudioReview StudioReview is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 30 StudioReview User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
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 !

Reply With Quote
  #3  
Old April 14th, 2004, 06:23 PM
pmuk pmuk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: USA
Posts: 21 pmuk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
you can check the condition by:

TreeView1.Nodes(0).IsExpanded=False

which means the treeview node is collapsed

Reply With Quote
  #4  
Old April 16th, 2004, 02:48 AM
chintan_vaishya chintan_vaishya is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 4 chintan_vaishya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs down Need to know when the event is fired??

Quote:
Originally Posted by StudioReview
You mean this??

this
.treeView1.Nodes[0].IsExpanded

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??

Reply With Quote
  #5  
Old April 16th, 2004, 02:50 AM
chintan_vaishya chintan_vaishya is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 4 chintan_vaishya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs down Need to know how to fire that event??

Quote:
Originally Posted by pmuk
you can check the condition by:

TreeView1.Nodes(0).IsExpanded=False

which means the treeview node is collapsed


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??

Reply With Quote
  #6  
Old April 20th, 2004, 01:15 PM
pmuk pmuk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: USA
Posts: 21 pmuk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Wink Expand Collapse Treeview

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....

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > Expand Collapse Treeview


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap