【发布时间】:2011-07-01 21:57:34
【问题描述】:
我有一个透明的图片框。我发现我可以使用 picturebox.Parent 来设置父图像,但它仅在 Parent 是另一个图片框时才有效。但是如果我想让表单的背景图片成为图片框的父级呢?
pictureBox1.Parent = PictureBox2; //works fine (of course if there is a pbox2)
pictureBox1.Parent = Form1; //??? magic goes here
【问题讨论】:
标签: c# picturebox windows-forms-designer