Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to scroll the scrollbar of treeview control automatically?

How to scroll the scrollbar of treeview control automatically?

Scheduled Pinned Locked Moved C#
tutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kmb89
    wrote on last edited by
    #1

    I use two treeviews in my form. These treeviews have the same nodes. The thing that i want to do is if i scroll the scrollbar of first treeveiw,i want the scrollbar of the second to be moved automatically like first treeview. I want to see the same nodes on first and second treeview if i scroll the scrollbar of the first or second treeview. If u have any idea to do this, pls point me. Thanks a lot. axiom.kid :confused:

    L T 2 Replies Last reply
    0
    • K kmb89

      I use two treeviews in my form. These treeviews have the same nodes. The thing that i want to do is if i scroll the scrollbar of first treeveiw,i want the scrollbar of the second to be moved automatically like first treeview. I want to see the same nodes on first and second treeview if i scroll the scrollbar of the first or second treeview. If u have any idea to do this, pls point me. Thanks a lot. axiom.kid :confused:

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      But in german. Just use the code. You must create a new class, just called it MyScrollTree and derived from TreeView. http://www.codegod.de/WebAppCodeGod/treeview-scrolling-synchronisieren-AID241.aspx[^]

      K 1 Reply Last reply
      0
      • K kmb89

        I use two treeviews in my form. These treeviews have the same nodes. The thing that i want to do is if i scroll the scrollbar of first treeveiw,i want the scrollbar of the second to be moved automatically like first treeview. I want to see the same nodes on first and second treeview if i scroll the scrollbar of the first or second treeview. If u have any idea to do this, pls point me. Thanks a lot. axiom.kid :confused:

        T Offline
        T Offline
        Tamer Oz
        wrote on last edited by
        #3

        You can capture an event like onscroll with this[^] and you can set new scrool position on second treeview by this[^]

        1 Reply Last reply
        0
        • L Lost User

          But in german. Just use the code. You must create a new class, just called it MyScrollTree and derived from TreeView. http://www.codegod.de/WebAppCodeGod/treeview-scrolling-synchronisieren-AID241.aspx[^]

          K Offline
          K Offline
          kmb89
          wrote on last edited by
          #4

          :-D Thank for ur help. The link u point me shows the thing what i want to do.Thanks :cool:

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups