设置父窗口的 BackgroundImage 属性

解决方案 »

  1.   

    你不要放置图片控件,那样所有的子窗体都会挡住,直接设置backgroudimage就可以了
      

  2.   


      设置父窗口的 BackgroundImage 属性,选择你要的图片即可!
      

  3.   

    动态加载你的pictureBox,当加载你的mdiForm时,把你的picturebox Dispose 掉。
      

  4.   

    MDI主窗体工作区实际上是一个类型为MdiClient 的子窗体,要设置主窗体的景图片不能简单地设置主窗体的BackgroundImage:private void Form1_Load(object sender, System.EventArgs e)
    {
    this.pictureBox1.Visible =false;
    foreach(Control ctl in this.Controls )
    {
    if (ctl is MdiClient )
    {
    ctl.BackgroundImage =this.pictureBox1.Image;
    break;
    }
    }
    }
      

  5.   

    对,动态加载,如果Show子窗体,则picturebox隐藏,当子窗体关闭时,Message给MDI窗体,显示picturebox,好像比较麻烦,呵呵