如题!!
之前我已经参照了
http://blog.csdn.net/xamcsdn2/archive/2005/09/13/478984.aspx但是说我bgMDIClient未付过值?请问还有人知道方法吗?教我,谢谢

解决方案 »

  1.   

    http://cncxz.cnblogs.com/archive/2005/11/29/287350.html
      

  2.   

    Private Sub frmMain_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.SizeChanged
            If Me.WindowState = FormWindowState.Minimized OrElse Me.ClientSize.Width < 10 OrElse Me.ClientSize.Height < 10 Then
                Return
            End If
            If System.IO.File.Exists(Application.StartupPath & "\Back.jpg") Then
                Me.BackgroundImage = New Drawing.Bitmap(Image.FromFile(Application.StartupPath & "\Back.jpg"), Me.ClientSize.Width, Me.ClientSize.Height)
            End If
        End Sub
      

  3.   

    private Image img = Image.FromFile("XXX.jpg");
    private Bitmap bmp = null;public Form1()
    {
    InitializeComponent(); bmp = new Bitmap(img, this.Width, this.Height);
    this.BackgroundImage = bmp; this.Resize += new EventHandler(Form1_Resize);
    }private void Form1_Resize(object sender, EventArgs e)
    {
    if (this.WindowState != System.Windows.Forms.FormWindowState.Minimized)
    {
    bmp = new Bitmap(img, this.Width, this.Height);
    this.BackgroundImage = bmp;
    }
    }