0
当我点击一个按钮时,我想添加一个ZedGraph,但是当我点击我的按钮时ZedGraph不会出现。这里是我的按钮单击处理程序:如何以编程方式添加ZedGraph?
ZedGraphControl zg1 = new ZedGraphControl();
zg1.Dock = DockStyle.Fill;
GraphPane myPane = new GraphPane();
BarItem myBar = new BarItem("Bar1");
myBar.AddPoint(1, 10);
myBar.AddPoint(2, 20);
myBar.Bar.Fill = new Fill(Color.AliceBlue, Color.White, Color.AliceBlue);
zg1.AxisChange();
zg1.Invalidate();
zg1.Show();
关联非常感谢你... – pdthekd 2012-03-30 05:31:04