|
how to create sample chart from scratch for more complicated example |
Posted by clayton leung on Jun-13-2012 17:23 |
|
i am currently using VS 2008, my programming language is c#
i can follow your example in simple charts that only have 1 chart in the example, but for more complicated example. more specially, in the Zooming and Scrolling with Track Line (2), i try to follow your example and failed. my code complied but there is no chart available when i run it.
Please help, your support has been excellent. i also upload my project file for your reference
|
Re: how to create sample chart from scratch for more complicated example |
Posted by Peter Kwan on Jun-14-2012 02:12 |
|
Hi Clayton,
It seems you have not set up any event handler at all.
Note that methods like "FrmZoomScrollTrack2_Load" are event handlers. It is supposed to run when the form loads. In normal programming, usually people will use Visual Studio to generate the event handler and then put code in it. If you want copy and paste the entire event handler method, you would need to wire up the events yourself. (Click on the Form, on the Property Page, choose the Events symbol, and there are all the events. Please wire up the events with the proper method.)
Similarly, there are methods for the push buttons, scroll bars, WinChartViewer, etc., in the code. Please wire them up with the proper event handlers.
Hope this can help.
Regards
Peter Kwan |
Re: how to create sample chart from scratch for more complicated example |
Posted by clayton leung on Jun-14-2012 17:18 |
|
your support has been fantastic, thanks a lot. |
|