我做了一个画图的介面,用到两个pictureBox,我把第二个pictureBox背景设为了透明,帮忙看一下怎么没有显示
private void Form1_Load(object sender, System.EventArgs e)//初始化
{
Graphics g = pictureBox2.CreateGraphics();
curImage = new Bitmap (this.ClientRectangle.Width ,this.ClientRectangle .Height); //建画布
curFileName = "未命名";
this.Text = "Is drawing\t"+curFileName;
curGraphics = Graphics.FromImage (curImage);
curGraphics.Clear (this.BackColor); //没有设的变量都没有问题
g.DrawRectangle(curPen,100,100,50,50);
curGraphics.DrawRectangle(curPen,100,100,50,50);
radioPen.Checked=true;
pictureBox1.Image=curImage;
}