文章 2022-12-29 来自:开发者社区

C#编程学习19:mdi窗体中子窗体不能重复打开的三种实现方式

需求描述:在MDI窗体中,子窗体只能被打开一次,如果已有窗体不会在重新创建窗体对象1 窗体的创建(1)创建mdi窗体:新建窗体将其名称更改为FormMain,属性IsMdiContainer设置为true(2)创建子窗体1:新建窗体将其名称更改为childForm1(3)创建子窗体1:新建窗体将其名称更改为childForm2(4)增加菜单项tsmi_singleMode,其Text属性设置为单....

C#编程学习19:mdi窗体中子窗体不能重复打开的三种实现方式
文章 2022-02-16 来自:开发者社区

C#学习笔记——MDI窗体(多文档界面)

1、设置父窗体: 如果要将某个窗体设置为父窗体,只需将该窗体的IsMdiContainer属性设置为True即可。 2、设置子窗体: 通过设为某个窗体的MdiParent属性来确定该窗体是那个窗体的子窗体。 语法如下: 1: public Form MdiParent{get;set;} 3、排列MDI子窗体: 语法如下: 1: public void LayoutMdi(M...

C#学习笔记——MDI窗体(多文档界面)

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

{"cardStyle":"productCardStyle","productCode":"aliyun","productCardInfo":{"productTitle":"云效DevOps解决方案:极速构建自动化CI/CD,降本增效稳交付","productDescription":"在快速变化的市场中,软件的快速迭代和稳定交付成为企业竞争的关键。本方案介绍如何使用阿里云的产品快速构建持续集成与部署流程。通过自动化构建、测试和部署流程,提高交付速度和质量,使开发团队更好地响应市场变化和用户需求,推动业务持续增长。","productContentLink":"https://www.aliyun.com/solution/tech-solution/swiftly-building-an-effective-ci-cd-pipeline","isDisplayProductIcon":true,"productButton1":{"productButtonText":"方案详情","productButtonLink":"https://www.aliyun.com/solution/tech-solution/swiftly-building-an-effective-ci-cd-pipeline"},"productButton2":{"productButtonText":"方案部署","productButtonLink":"https://help.aliyun.com/document_detail/2861142.html"},"productButton3":{"productButtonText":"查看更多技术解决方案","productButtonLink":"https://www.aliyun.com/solution/tech-solution/"},"productPromotionInfoBlock":[{"$id":"0","productPromotionGroupingTitle":"解决方案推荐","productPromotionInfoFirstText":"云架构必修课:云上高可用架构","productPromotionInfoFirstLink":"https://www.aliyun.com/solution/tech-solution/hablog","productPromotionInfoSecondText":"灵活调度,高效编排,容器化管理云上应用","productPromotionInfoSecondLink":"https://www.aliyun.com/solution/tech-solution/ack-services"}],"isOfficialLogo":false},"activityCardInfo":{"activityTitle":"","activityDescription":"","cardContentBackgroundMode":"LightMode","activityContentBackgroundImageLink":"","activityCardBottomInfoSelect":"activityPromotionInfoBlock"}}