System.Drawing.Bitmap myBit=new System.Drawing.Bitmap( 图片文件名,false);
this.BackgroundImage =myBit;
this.Refresh();

解决方案 »

  1.   

    to 愚翁:
    我就是用的System.Drawing
    我的代码如下
    private void button1_Click(object sender, System.EventArgs e)
    {
    Image imgMyImg;
    imgMyImg=new Bitmap(@"f:\zhengjia.bmp");
    Graphics GraphicsMyg;
    GraphicsMyg.DrawImage(imgMyImg,20,150);
    }运行时告诉我说:F:\C#\loadbmp\loadbmp\loadbmp\Form1.cs(115): Use of unassigned local variable 'GraphicsMyg'
      

  2.   

    把后两句改一下
    Graphics GraphicsMyg=this.CreateGraphics();
    GraphicsMyg.DrawImage(imgMyImg,20,150);
      

  3.   

    我也想到了!!我没有创建Graphics对象. 
    感谢愚翁!!!