Page 1 of 1

Screen position

Posted: Thu Apr 08, 2004 8:48 pm
by 8878570
Is there a way to get the screen position for just the plot area of the chart? I want to pop a borderless form over the plot area and want to cover the plot area only.

Posted: Fri Apr 09, 2004 4:56 am
by Marjan
Hi.

You could combine the absolute chart location (tChart.Location) together with (chart) relative axis position to define/retrieve chart plotting rectangle. For example

Code: Select all

int xpos = tChart1.Location.X + tChart1.Axes.Left.Position;