c#怎么用代码给窗口添加背景图片呀, 大家帮帮我

解决方案 »

  1.   

    设置窗体的BackgroundImage为一副图片即可。
    http://blog.csdn.net/suyiming/article/details/4101177string fbImage = Application.StartupPath + @"..\Images\bg1.jpg";
    if(File.Exists(fbImage))
    {
           Bitmap bm = new Bitmap(fbImage);
           this.BackgroundImage = bm;
    }
      

  2.   

    呃 、、
    this.BackgroundImage = Image.FormFile("C:\\1.jpg");
      

  3.   

    string fbImage = Application.StartupPath + @"..\Images\bg1.jpg";
    if(File.Exists(fbImage))
    {
           Bitmap bm = new Bitmap(fbImage);
           this.BackgroundImage = bm;
    }