Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


identifying a node in treeview


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-25-2008, 04:24 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 143
Default identifying a node in treeview

Is there some way to identify a given node - except through the text of that node? That is, in the example below the node "Great-Grandson" could be identified as 2.0.0 or "Grandchildren3" as 2.2.

all the best / Björn
Attached Images
File Type: jpg treeview.jpg (13.4 KB, 10 views)
Reply With Quote
  #2 (permalink)  
Old 05-25-2008, 06:47 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

You could use the Parent property to find the text of its parent (and continue up to the root).
Reply With Quote
  #3 (permalink)  
Old 05-29-2008, 05:35 PM
Newbie
 
Join Date: Apr 2008
Posts: 6
Default

If you aren't using images on the treeview, you can use the node's ImageIndex property to store a number, which in turn could be an index value into an array storing additional information about the node.
Reply With Quote
  #4 (permalink)  
Old 05-29-2008, 05:47 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 143
Default

Thanks for the tip, that sounds like a neat idea

Björn
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
TreeView Editing Cableguy Questions & Help Needed 1 07-13-2008 10:36 PM
Unable to cast Object Treeview.node Mr_Gee Questions & Help Needed 15 03-21-2008 07:13 PM
TreeView event magi6162 Questions & Help Needed 3 08-29-2007 11:29 AM
treeview color (node) tvrman Questions & Help Needed 2 08-04-2007 06:57 PM
TreeView SelectedImageIndex adukes Questions & Help Needed 3 06-27-2007 07:58 PM


All times are GMT. The time now is 02:01 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0