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

C# MDI例子

C#3年前 (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# 可空参数

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

C# System.IO.Path

System.IO.Path.GetExtension返回指定的路径字符串的扩展名。string&n...

C# BackgroundWorker,在DoWork里更新控件内容

一般情况下不可以直接在BackgroundWorker的DoWork事件中更新 UI 控件在Back...

c# Invalidate、Refresh、Refreshitem、Refreshitems的功能

Invalidate方法功能概述Invalidate方法主要用于使控件的特定区域(整个控件或部分区域...

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

核心区别操作顺序            ...