完全可以呀!<br>form1为主窗体,form6为子窗体;<br>一下代码功能是改变主窗体的背景图片。<br>procedure TForm6.BitBtn1Click(Sender: TObject);<br>begin<br> if CheckBox1.Checked then<br> begin<br> Form1.Image1.Center:=True;<br> Form6.WindowState:=wsMinimized;<br> end<br> else<br> begin<br> Form1.Image1.Center:=False;<br> if Image1.Picture.Height=0 then<br> begin<br> ShowMessage('请选择图片');<br> end<br> else<br> begin<br> Form1.Image1.Picture:=Image1.Picture;<br> Form6.WindowState:=wsMinimized;<br> end;<br> end;<br>end;