Results 1 to 4 of 4

Thread: how to rename the Root of the Tree View at backend Code [vb.net 2003]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2007
    Posts
    80

    how to rename the Root of the Tree View at backend Code [vb.net 2003]

    Hi all,

    How to rename the rode name at backend code ??


    i have root node show like below

    Inbox
    Outbox
    Trash

    i want to rename Inbox become inbox (20) for new mail......

    thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: how to rename the Root of the Tree View at backend Code [vb.net 2003]

    The root node of what? Guessing games are fun but you'll get a better answer quicker if you provide us the relevant information.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2007
    Posts
    80

    Re: how to rename the Root of the Tree View at backend Code [vb.net 2003]

    i have one TreeView Contorl.... i have add 3 root nodes like
    Inbox
    Outbox
    Trash
    ......................................

    after i click on the inbox root node, i will going to read the DB table to get the unread msg count........ Inbox (2) unread

    is it possible to do tat ???


    thanks

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: how to rename the Root of the Tree View at backend Code [vb.net 2003]

    Each node has a Text property, which you can set. You can access the nodes by index, e.g. myTreeView.Nodes(0), but as you have well-known nodes I would suggest a member variable for each one to access it directly.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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