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
marks positions located in wrong places.
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.
This method forces the chart being repainted internally.
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;