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. Help about List box VScroll

Help about List box VScroll

Scheduled Pinned Locked Moved C#
help
5 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.
  • C Offline
    C Offline
    crazymubashir
    wrote on last edited by
    #1

    :(( Hi, I am trying to build my custom listbox control. The problem i am having is that, if my list box shows 10 items and i have for suppose 20 items in it. now when a user scroll down using lstBox 'VScroll' control then my application doesn't know that the user has scroll down. Any Suggession without using "Selected IndexChange " or "Click Event" or "Key Down" Events.

    R 1 Reply Last reply
    0
    • C crazymubashir

      :(( Hi, I am trying to build my custom listbox control. The problem i am having is that, if my list box shows 10 items and i have for suppose 20 items in it. now when a user scroll down using lstBox 'VScroll' control then my application doesn't know that the user has scroll down. Any Suggession without using "Selected IndexChange " or "Click Event" or "Key Down" Events.

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      I know this is a cheesy solution, but perhaps you could periodically check if the listbox's TopIndex[^] has changed? /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

      C 2 Replies Last reply
      0
      • R Ravi Bhavnani

        I know this is a cheesy solution, but perhaps you could periodically check if the listbox's TopIndex[^] has changed? /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

        C Offline
        C Offline
        crazymubashir
        wrote on last edited by
        #3

        hi Ravi, plz tell me which method or event of the listbox will going to help me in checking the top index periodically. Hoping to get the reply soon. Thanks.

        R 1 Reply Last reply
        0
        • C crazymubashir

          hi Ravi, plz tell me which method or event of the listbox will going to help me in checking the top index periodically. Hoping to get the reply soon. Thanks.

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          You'll need to set a timer and check the ListView's TopIndex property every time the timer goes off. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

          1 Reply Last reply
          0
          • R Ravi Bhavnani

            I know this is a cheesy solution, but perhaps you could periodically check if the listbox's TopIndex[^] has changed? /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

            C Offline
            C Offline
            crazymubashir
            wrote on last edited by
            #5

            hi Ravi, plz tell me which method or event of the listbox will going to help me in checking the top index periodically. Hoping to get the reply soon. I will also look at the link you have mentioned. if in case it did provide me the desired result i will post the message for confirmation. Thanks.

            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