到http://chs.gotdotnet.com/去看,那儿有例子

解决方案 »

  1.   

    private void 改变背景_Click(object sender, System.EventArgs e)
    {
    if(this.openFileDialog1.ShowDialog()==DialogResult.OK)
    {
    Image.GetThumbnailImageAbort myCallback =
    new Image.GetThumbnailImageAbort(ThumbnailCallback); this.imagePath=this.openFileDialog1.FileName;
    Image bgim=Image.FromFile(this.imagePath);
    Image myThumbnail = bgim.GetThumbnailImage(
    this.Width, this.Height, myCallback, IntPtr.Zero); this.BackgroundImage=myThumbnail;
    }
    } public bool ThumbnailCallback()
    {
    return false;
    }
    测试通过
    private void menuItem7_Click(object sender, System.EventArgs e)
    {Form2 fm=new Form2();
    fm.Text="I Love";
    fm.MdiParent=this;
    fm.Show();
    }
      

  2.   

    Form fm2=new Form(); ???
    那是一个新的FORM类,而并不是你制作的FORM
    比如你的FM2 name为 loginfrm 则应写成
    loginfrm fm2 = new loginfrm();
    fm2.MdiParent=this;
    fm2.Show();
    这样你真实的第二个form才可以显示出来.
      

  3.   

    fm2 fm = new fm2();
    fm.Show();
      

  4.   

    fm2 frm=new fm2();
    frm.Show();
      

  5.   

    fm2.MdiParent=this;
    fm2.Show();