CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2011
    Posts
    3

    VScroll in tree view

    how to do vertical scrolling in tree view?.?

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: VScroll in tree view

    Enable the scrollers ({object}.scrollbars = Both ) and if the loaded data is bigger that the viewport of the object the scroller will appear.....
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: VScroll in tree view

    You need to make sure the Scrollable property is set to True

  4. #4
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: VScroll in tree view

    Isn't that the default setting?

    Tree will only scroll when the list is longer than the view port.
    Always use [code][/code] tags when posting code.

  5. #5
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: VScroll in tree view

    Yes it is the default setting. It might have got set to False by accident

  6. #6
    Join Date
    Jun 2004
    Location
    NH
    Posts
    678

    Re: VScroll in tree view

    Are we enabling the ability to scroll, or actually doing it?

  7. #7
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: VScroll in tree view

    If the OP could get back to us we'd know for sure.. but the Tree view does have built in scroller code, so you just have to enable it...
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  8. #8
    Join Date
    Jun 2004
    Location
    NH
    Posts
    678

    Re: VScroll in tree view

    Ah yes similar to EnsureVisible, the selected item is scrolled into view automatically. I myself actually needed code to scroll the treeview to a desired increment more flexibly. For example keeping the main tree items visible, without scrolling wildly outward to distant branches. Since scrolling could be horizontal or vertical.

    I was also thinking we should make sure that the OP wanted to do this with in-process vb.net treeview, and not cross-process third party treeview.

    I guess since the OP may not know how to formulate these questions, then it is sort of left up to us to decipher.

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

Featured