//在構造函數中加入:
InitializeComponent();
foreach(Control c in this.Controls)
{
if(c is MdiClient)
{
c.BackColor = this.BackColor;
c.BackgroundImage = this.BackgroundImage;
}
}
InitializeComponent();
foreach(Control c in this.Controls)
{
if(c is MdiClient)
{
c.BackColor = this.BackColor;
c.BackgroundImage = this.BackgroundImage;
}
}
解决方案 »
- 进程为什么会超过最大进程数??
- 一个简单的关于属性的问题
- 全文索引中文模糊匹配问题,求救!!!
- c sharp 怎样对地图进行操作,有意者请进!
- 菜鸟问uml问题
- webBrowser如何获得iframe的内容
- C#实现拖放EXE文件的难题!请解难谢谢
- 请教:webbrowse和word的问题?
- 我应该如何在listview中添加事件处理方法,比如listView1_DoubleClick,急!!!!!!!!!
- 请问:msdn中“This type supports the .NET Framework infrastructure and is not intended to be used directly from your code.”是什
- winform中如何将grid中的数据进行分页显示?
- c++/c写的dll定义的char far *类型在c#中如何定义
c.BackgroundImage = this.BackgroundImage
InitializeComponent();
后面添加上:
foreach(Control c in this.Controls)
{
if(c is MdiClient) {
c.BackColor = this.BackColor; //颜色
c.BackgroundImage = this.BackgroundImage; //背景
}
}