我现在在Form的背景加了一张图片。当我的FORM全屏显示的时候,就会出现很多张图片,我怎么才能让图片根据窗体一起放大缩小啊。

解决方案 »

  1.   


                BackgroundImageLayout = ImageLayout.Stretch;
      

  2.   

    BackgroundImgeLayout 属性设置为Stretch。
      

  3.   

    我的FORM里怎么没有这个属性啊
      

  4.   

    你的Visual Studio是什么版的?我的是2005版的,有这个属性。仔细找找。
      

  5.   

    //VS2003的话,可能得这样不过界面刷新就慢了。。
    private void Form1_SizeChanged(object sender, System.EventArgs e)
    {
    Image img=new Bitmap(this.BackgroundImage,this.Width,this.Height);
    // this.BackgroundImage=null;
    this.BackgroundImage=img;
    }
      

  6.   

    BackgroundImageLayout = ImageLayout.Stretch;
    窗体属性里有
      

  7.   

    如果是Lable什么的加上图片也是这么写吗?
      

  8.   

    是啊。。一样的道理。。
    label就要用label的width和height
      

  9.   

    现在我要把图片放在一个panel里面,我把panel撑满了。可是就不能全显示了。是为什么呢?