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. bug in HScrollBar control object

bug in HScrollBar control object

Scheduled Pinned Locked Moved C#
helptutorialquestionworkspace
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.
  • 3 Offline
    3 Offline
    3Dizard
    wrote on last edited by
    #1

    I setup an HScrollBar as part of a panel. Let's call this ScrollBar MyScrollBar. Now to the problem: When a user scrolls (dragging the slider) the maximum value that can be reached is not the MyScrollBar.Maximum value but the value (MyScrollBar.Maximum - 9). This occured for any MyScrollBar.Maximum value I specified. Anyone having this bug, too? Anyone know, how to fix this? Greetings

    G 1 Reply Last reply
    0
    • 3 3Dizard

      I setup an HScrollBar as part of a panel. Let's call this ScrollBar MyScrollBar. Now to the problem: When a user scrolls (dragging the slider) the maximum value that can be reached is not the MyScrollBar.Maximum value but the value (MyScrollBar.Maximum - 9). This occured for any MyScrollBar.Maximum value I specified. Anyone having this bug, too? Anyone know, how to fix this? Greetings

      G Offline
      G Offline
      Graham Nimbley
      wrote on last edited by
      #2

      This is quoted from MSDN: The value of a scroll bar cannot reach its maximum value through user interaction at run time. The maximum value that can be reached is equal to the Maximum property value minus the LargeChange property value plus 1. The maximum value can only be reached programmatically. So in your case LargeChange=10. You could get round this by adding LargeChange to Maximum; -- modified at 16:12 Sunday 25th June, 2006

      3 1 Reply Last reply
      0
      • G Graham Nimbley

        This is quoted from MSDN: The value of a scroll bar cannot reach its maximum value through user interaction at run time. The maximum value that can be reached is equal to the Maximum property value minus the LargeChange property value plus 1. The maximum value can only be reached programmatically. So in your case LargeChange=10. You could get round this by adding LargeChange to Maximum; -- modified at 16:12 Sunday 25th June, 2006

        3 Offline
        3 Offline
        3Dizard
        wrote on last edited by
        #3

        Thank you, didn't guess this is intended behaviour.

        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