Set Axis and Zoom in Form Load Wonky
Posted: Sun Jul 31, 2022 8:00 am
Hi Steema -
I'm building an app and trying to set the TChart Axes and Zoom during form Load -
The Set Axes works but not the Zoom -
But if I set the Axes and Zoom with the same code from buttons on the form once loaded it works.
I'm sure it's an event sequencing issue of some sort but can't figure it out.
I distilled the problem reproducing code into a simple one-page c# .net WinForms app to see if it's solvable.
I've also attached some screenshots.
Thanks so much for your help!
Joseph
I only attached the form1 c# code because I couldn't attach the solution rar because it was too large. But if you need the VS2019 Solution ping me.
I'm building an app and trying to set the TChart Axes and Zoom during form Load -
The Set Axes works but not the Zoom -
But if I set the Axes and Zoom with the same code from buttons on the form once loaded it works.
I'm sure it's an event sequencing issue of some sort but can't figure it out.
I distilled the problem reproducing code into a simple one-page c# .net WinForms app to see if it's solvable.
I've also attached some screenshots.
Thanks so much for your help!
Joseph
I only attached the form1 c# code because I couldn't attach the solution rar because it was too large. But if you need the VS2019 Solution ping me.