Page 1 of 1

marks positions located in wrong places.

Posted: Mon Apr 16, 2007 3:31 pm
by 9641633
Hi All,

I place the logic to locate the marks for series in the event BeforeDrawSeries. When we run program, at the beginning time marks just locate in default positions, not the right locations we want. Then we zoom the chart, marks positions locate in the right places. Could you give me any idea to get the right positions for marks when the program is loading ?

Thank you very much for your help.

Sincerely,
Brian

Posted: Tue Apr 17, 2007 7:58 am
by 9348258
Hi Brian

You can try using "AfterDraw" event. If the problem isn't solved, you can try using the Bitmap() method, for example, at the end of the "FormLoad" event.

Code: Select all

Bitmap bmp = tChart1.Bitmap;
This method forces the chart being repainted internally.