Programmatically Creating DrawLineItem Error Null Handles Exception
Posted: Mon Nov 09, 2020 7:52 am
I'm adding DrawLineItems to the Lines collection and that's fine --
Until the chart tries to refresh and throws an exception because all the "Handles" fields such as EndHandle, MidlleBottomHandle, MiddleTopHandle, and Starthandle are Null so a NullReferenceException is thrown.
My question is how to either populate the Handle values or avoid the exception when programmatically adding DrawLineItems to a .Net TeeChart?
Error My populate code: Null "Handle's" in DrawLineItems Also when I add the line to the DrawLines Lines collection it doesn't throw the newline event like when I draw the line on the screen by hand with the mouse.
Thanks for your help.
Joseph
Until the chart tries to refresh and throws an exception because all the "Handles" fields such as EndHandle, MidlleBottomHandle, MiddleTopHandle, and Starthandle are Null so a NullReferenceException is thrown.
My question is how to either populate the Handle values or avoid the exception when programmatically adding DrawLineItems to a .Net TeeChart?
Error My populate code: Null "Handle's" in DrawLineItems Also when I add the line to the DrawLines Lines collection it doesn't throw the newline event like when I draw the line on the screen by hand with the mouse.
Thanks for your help.
Joseph