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. ListView ScrollBar

ListView ScrollBar

Scheduled Pinned Locked Moved C#
question
3 Posts 2 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.
  • Z Offline
    Z Offline
    Zishan Haider
    wrote on last edited by
    #1

    Hello, My Form has a listView control, that is acting as a message window. Messages are appended to the listView. I would like the scrollbar knob to stay positioned at the bottom of the vertical scrollbar. How can I do it? Regards, Zishan

    S 1 Reply Last reply
    0
    • Z Zishan Haider

      Hello, My Form has a listView control, that is acting as a message window. Messages are appended to the listView. I would like the scrollbar knob to stay positioned at the bottom of the vertical scrollbar. How can I do it? Regards, Zishan

      S Offline
      S Offline
      sreejith ss nair
      wrote on last edited by
      #2

      This code blcok will help you to get the visibility of last item in your listview control. And if nessasary it will scroll upto the end. if(listView1.Scrollable) listView1.Items[listView1.Items.Count-1].EnsureVisible(); ;) Sreejith Nair [ My Articles ]

      Z 1 Reply Last reply
      0
      • S sreejith ss nair

        This code blcok will help you to get the visibility of last item in your listview control. And if nessasary it will scroll upto the end. if(listView1.Scrollable) listView1.Items[listView1.Items.Count-1].EnsureVisible(); ;) Sreejith Nair [ My Articles ]

        Z Offline
        Z Offline
        Zishan Haider
        wrote on last edited by
        #3

        Thanks a lot.. this solved my problem Best regards, Zishan

        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