当前位置:首页 > 开发 > 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://pythonopen.com/?id=237

相关文章

C# 获取程序运行路径

AppDomain.CurrentDomain.BaseDirectory...

C# ref 和out

ref关键字概念:ref是 C# 中的一个关键字,用于按引用传递参数。当在方法调用中使用ref关键字...

C# Byte[]转为Image

以下是在 C# 中将byte[](字节数组,通常表示图像的二进制数据)转换为Image类型的常见方法...

C# Graphics文本抗锯齿

g.TextRenderingHint = TextRenderingHint....

C# TextRenderer.MeasureText

TextRenderer.MeasureText是System.Windows.Forms命名空间中...

C# i++和++i的区别

核心区别操作顺序            ...