mdi窗体问题 到http://chs.gotdotnet.com/去看,那儿有例子 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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();} Form fm2=new Form(); ???那是一个新的FORM类,而并不是你制作的FORM比如你的FM2 name为 loginfrm 则应写成loginfrm fm2 = new loginfrm();fm2.MdiParent=this;fm2.Show();这样你真实的第二个form才可以显示出来. fm2 fm = new fm2();fm.Show(); fm2 frm=new fm2();frm.Show(); fm2.MdiParent=this;fm2.Show(); 怎么在服务端自动生成客户端? 很简单的问题 如何读取文本文件中的tab键 C#如何打印的问题?高手进来啊? 如何用Visual C#画坐标及函数曲线 使用Jmail收邮件中的SavetoStream出错 请教C#中的一个SQL语句 Config文件在编译时无法自动拷贝到bin/debug/文件夹内? 求助! sql2000的图片用水晶报表如何打印?(有沈阳的朋友吗 ?) datagrid标题如何调整大小 关于三层结构
{
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();
}
那是一个新的FORM类,而并不是你制作的FORM
比如你的FM2 name为 loginfrm 则应写成
loginfrm fm2 = new loginfrm();
fm2.MdiParent=this;
fm2.Show();
这样你真实的第二个form才可以显示出来.
fm.Show();
frm.Show();
fm2.Show();