|
Group: Forum Members
Posts: 61,
Visits: 35
|
Hi,
Thank you for your answer, and sorry for the late reply.
I tried your method, it is almost working. I can not really use it just when the graph is recalculated as my graph refreshes in every 3 second. So if the user re size the screen the objects will not move for a maximum of 3 seconds. I tried to put the method in the re size event the way like that:
private void nChartControl1_SizeChanged(object sender, EventArgs e) { NPointF p = nChartControl1.Charts[0].PlotArea.LeftBottom; Console.WriteLine("Chart X: " + p.X + "Chart Y: " + p.Y); panel2.Location = new Point(Convert.ToInt32(p.X), Convert.ToInt32(p.Y)); }
Unfortunately that does not work nether, as it seems it is using the size of the graph before re size. Do you know what could be the solution the get the coordinates after the re size?
Thanks a lot Daniel
|