当前位置:首页 > 开发 > 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# 数据类型

Type ByteLenghtMinMax.NET Framework Typedefau...

C# 获取程序运行路径

AppDomain.CurrentDomain.BaseDirectory...

在 C# 中实现类似于 Windows 资源管理器的“名称”排序方式

要在 C# 中实现类似于 Windows 资源管理器的“名称”排序方式,你需要考虑以下几点:1. 不...

C# BackgroundWorker

1.概述BackgroundWorker是一个在 WinForms 应用程序中用于简化在后台线程执行...

C# [OnPaint]和[OnPaintBackground]的区别

OnPaint和OnPaintBackground的主要功能区别OnPaint:OnPaint方法主...

C# System.IO.Path

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