Results 1 to 4 of 4

Thread: VB - A demonstration of how to generate unique keys for a TreeView

  1. #1

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,427

    VB - A demonstration of how to generate unique keys for a TreeView

    The key of a TreeView node must be unique, and the attached little project demonstrates how to do that.
    Attached Files Attached Files

  2. #2
    Lively Member
    Join Date
    Jul 2005
    Location
    Barrie, Ontario - Canada
    Posts
    85

    Re: VB - A demonstration of how to generate unique keys for a TreeView

    Thanks for all the help, people... but I am still missing something... something critical.
    If all of the keys are all unique... how do the child-elements know which parent to attach to?

    -Paul-
    It seems my projects' ambitions are inversly proportional to what I don't know.

  3. #3

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,427

    Re: VB - A demonstration of how to generate unique keys for a TreeView

    I believe you are confusing Relative (the 1st parameter of .Add) with Key, the 3rd parameter. It's the former that "tells" the children where to attach.

  4. #4
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: VB - A demonstration of how to generate unique keys for a TreeView

    Hmm I never came across this thread before...

    Ok here is one more way to it...

    http://www.vbforums.com/showpost.php...38&postcount=5
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

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