当前位置:首页 > 开发 > C# > 正文内容

C# MDI例子

C#4年前 (2022-10-30)

父窗口属性IsMdiContainer设置为True

private void button1_Click(object sender, EventArgs e)
{
    Form2 form2 = new Form2();
    form2.MdiParent = this;
    form2.Show();
}


转载请注明出处。

本文链接:http://www.pythonopen.com/?id=237

相关文章

C# 时间操作

获取系统已运行时间    System.Environment.Tic...

C# 获取带有焦点的控件

this.ActiveControl...

C# 可空参数

using System; using System.Runtime.Inte...

C# 跳出foreach循环

在 C# 中,如果你想在 foreach 循环内部提前跳出当前这一轮循环,继续执行下一轮循环,可以使...

C# MemoryStream转为Image

        //...

C# Control防闪烁

SetStyle(ControlStyles.AllPaintingInWmPaint |...