private void button1_Click(object sender, EventArgs e)
{
int count = int.Parse(this.comboBox1.Text.Trim());
this.Refresh();
Graphics g = CreateGraphics();
huatu(g,count);
}
private void huatu(Graphics g,int num)
{
Pen p = new Pen(Color.Red, 1);//上涨
Pen p1 = new Pen(Color.Green, 1);//下跌
int width = 1050;
int height = 400;
int Kwidth = width / num - 10;
g.DrawRectangle(p, 80, 80, width, height);
//k线开始
Font myFont = new Font(“微软雅黑”, 8);
string begindate = null;
st