Results 1 to 2 of 2

Thread: Setting the Scrollbar position on a Tree View Control

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2005
    Posts
    20

    Setting the Scrollbar position on a Tree View Control

    Is there a way to programatically set the scrollbar position on a Tree View Control?

    I create the tree view add all the nodes then expand all, the scroll bar goes all the way to the bottom. I would like it set to the scroll bar to the position of the first check tree node.

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

    Re: Setting the Scrollbar position on a Tree View Control

    You would call EnsureVisible on the first node in the tree.
    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