我如何通过按钮来做什么,form1的背景图像等于form2的背景图像?
这是我的带有form1图像的按钮(按此按钮可更改form1的背景。)
private void button1_Click (object sender, EventArgs e)
{
this.BackgroundImage = Properties.Resources._02_blue
}
我希望此图像成为form2的背景图像。示例将为我服务。谢谢。
我想念什么吗?
form2.BackgroundImage = form1.BackgroundImage;
form2
的实例Form2
和form1
的实例在哪里form1
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句