CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    32

    How to add a changing number to a static MSCHart?

    My line MSCHart shows the prices of a stock over time up to yesterday.
    As the stock is traded today, I like to show the new price on the chart, perhaps as a straight green/red line across the plot, but the historical plot itself will remain the same.
    Appreciate help.

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to add a changing number to a static MSCHart?

    Just refresh the display after you query the db. Post your code (or sections of it)
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Sep 2006
    Posts
    32

    Re: How to add a changing number to a static MSCHart?

    Thanks, but this is not what I have in mind.
    The chart is historical, so data will remain the same throughout the day.
    All I want is to add a tick to indicate the current price.

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to add a changing number to a static MSCHart?

    I don't think it's possible with MSChart, unless you double-buffer two of them. That would cause a refresh, but quicker.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

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

Featured