help with horizontalline in chart
-
Thursday, September 27, 2012 12:13 PM
Hello all.
I'm a brazilian, so sorry for my english.
I asked in brazilian forum but anybody answered this question, so I'm here.
I have a Chart, mschart with candles. I inserted a function for to draw a line in chart. This line is a HorizontalLine with anchor in start point and end point. This line is traced with the mouse clicks.
Like in the image, we can look that this function works correctly.When I move the scroolbar, this line moved too.
If the start point is in candle number 20 and the end in 80, when I move the scroolbar and the candle number 20 goes out of the chart, the line disappear, but the line is drawn until the candle 80 that is still shown in the chart
Any Help?
- Moved by Mark Liu-lxf Friday, September 28, 2012 5:36 AM (From:Visual Basic General)
All Replies
-
Thursday, September 27, 2012 2:00 PMthis is hard...
-
Thursday, September 27, 2012 2:23 PM
You know that there is a special forum for windows forms.
http://social.msdn.microsoft.com/Forums/en-US/winforms/threads
Success
Cor -
Friday, September 28, 2012 5:35 AM
Hi Bisewski,
Welcome to the MSDN forum.
As I read your issue, it seems has more relationship with Chart control. Microsoft provides a special forum to deal with Chart control issue. For better support, I will move this thread to Chart Controls for .NET Framework forum. It will cost a little time to involve the members in this forum. I appreciate your patience.
Sorry for any inconvenience and have a nice day.
Mark Liu-lxf [MSFT]
MSDN Community Support | Feedback to us
-
Sunday, September 30, 2012 2:36 PM
Hello all.
My problem is this line:
sender.Annotations(myLine.Name).AnchorX = x1
When this anchor point get out chart, my line loss the anchor point and it is deleted.
But, I dont know how I can anchor in both points.
Look the above image. In line A I need to anchor in point P2 if I scrool the bar to the left side. If the anchor point is in P1, my line simply desapear. But if I scrool bar to the right side, I need that my anchor point be in the P1 point.
I imagine that the one solution is change the anchor point eath time that I move the scroolbar. I need identifier the direction and change point.
Other more simple solution?
Thanks and sorry my english. I'm a brazilian.

