假设你的MDI主窗体是Form2,那么在MDI主窗体上加一隐藏的pictureBox,设它的Image
在窗体构造函数上加上这些
public Form2()
{
InitializeComponent(); foreach (Control con in this.Controls)
{
if(con is MdiClient)
{ con.BackgroundImage=this.pictureBox1.Image;
}
}
}

解决方案 »

  1.   

    string[] AppPathStr; 
    Image MainWinImage; 
    AppPathStr = Split(System.Windows.Forms.Application.ExecutablePath, "\"); 
    try { 
     this.BackgroundImage = MainWinImage.FromFile(System.Windows.Forms.Application.ExecutablePath.Substring(0, System.Windows.Forms.Application.ExecutablePath.Length - Len(AppPathStr(AppPathStr.Length - 1)) - 1) + "\jpg\background.jpg"); 

    catch (Exception exc) { 
     MsgBox("载入主窗口图片失败", MsgBoxStyle.Information); 
    }
      

  2.   

    ajqc(失眠无神闷坐中) 的方法不错,简单方便!谢谢!
    zhanglizhao(醉猫) 的方法有问题,这种方法对MDI窗体没有效果的