Results 1 to 2 of 2

Thread: [RESOLVED] MSChart Scrollbar help

  1. #1

    Thread Starter
    Hyperactive Member Frabulator's Avatar
    Join Date
    Jan 2015
    Posts
    304

    Resolved [RESOLVED] MSChart Scrollbar help

    I have an application that uses MSChart, with the zoom/scrollbars, to enlarge the chart. After this the user selects two points on said chart (start point and end point) and manipulates all point in between. The problem is that if the user selects a start point and then uses the scrollbar to scroll down and then selects another point, the points select begin to jump around the chart and you have to close the program to stop the freak out.

    I have noticed that this only happens with the above situation. So my work around would be to disable the scrollbars when a point is selected. Is there a way to do this without losing the current zoom? I have looked around but havenít really got a straight answer and I dont know if its even possible.

    Thanks!
    Oops, There it goes. Yep... my brain stopped...
    _________________________________

  2. #2

    Thread Starter
    Hyperactive Member Frabulator's Avatar
    Join Date
    Jan 2015
    Posts
    304

    Re: MSChart Scrollbar help

    To answer my own question it is a simple boolean

    vb.net Code:
    1. Chart3.ChartAreas(0).AxisY.ScrollBar.Enabled = False
    2.  
    3.  Chart3.ChartAreas(0).AxisX.ScrollBar.Enabled = False


    When the edits are done turn it back to True and everything goes back to the way it was.

    When you turn it to False there is no change in view, zoom or orientation. It says the same until it is turned back
    Oops, There it goes. Yep... my brain stopped...
    _________________________________

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