I reviewed the code you provided and did not find any obvious error, while unfortunately I cannot get it compiled as lacking much more information. If you still have problem, could you provide a self-contained application which can compile and run to show your issue? I think it will be very helpful to identify the issue and get it resolved.
Any more questions please feel free to let me know.
i m sending my sourc code attatchment. I am able to show pie chart with two pie slice..but i am unable to do it with more than 2 slices because i am using array of pieitem [].so when i call event handler for piechartdrawing,it goes in infinite loop.
when control comes here ->
zedGraphStyle.ZedGraphDrawing += new EventHandler<ZedGraphDrawingEventArgs>(zedGraphStyle_PieGraphDrawing)
,It call piechart function infinitely..
I have attached snapshot of Design form,which inherites mdi form named mapexplorer.
I reviewed the code you provided and did not find any issue with it, could you let me know how did you find it getting into infinite loop? Can you show me how many items in the array of pie item? Also, did you have a chance to review the post I suggested in my previous post? Any more questions please feel free to let me know.