Results 1 to 3 of 3

Thread: Add own properties to treenode

  1. #1

    Thread Starter
    Registered User NicoNel2000's Avatar
    Join Date
    Feb 2004
    Location
    Beijing - China
    Posts
    296

    Resolved Add own properties to treenode

    Hi,

    A treenode got properties like text, tag, etc.

    From the back of my head I remember you can add your own properties, methods and events to a existing .net object.
    I want to add properties to a treenode to store some values.

    Can someone just push me off in the right direction? Sample code will be nice, but jsut need a keyword or two and will take it from there.
    Thanx!!!
    Last edited by NicoNel2000; Jan 17th, 2005 at 09:25 AM. Reason: Resolved

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Add own properties to treenode

    you would need to create your own class, and that class would inherit from TreeNode

  3. #3

    Thread Starter
    Registered User NicoNel2000's Avatar
    Join Date
    Feb 2004
    Location
    Beijing - China
    Posts
    296

    Re: Add own properties to treenode

    Hi,

    Thanx.....Got an article on that and busy figuring it out!

    If anyone else ever get pass here and need some help, check out this link:

    http://www.devcity.net/Articles/23/1..._treeview.aspx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width