MDI父母和子女表格

编程入门 行业动态 更新时间:2024-10-15 12:35:36
本文介绍了MDI父母和子女表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好,我有一个父母Mdi表格和三个孩子表格

Hi all I have a parent Mdi form and three child forms

frmTrnDialog objTrnDialog = new frmTrnDialog(); objTrnDialog.Owner = this; objTrnDialog.ShowDialog();

这是设置我的孩子表格的代码.但是如何使其完全适合父表单?

This is my code to set my child forms. But how to fit it perfectly inside parent form?

推荐答案

嗨 试试这个: Hi try this: frmTrnDialog objTrnDialog = new frmTrnDialog(); objTrnDialog.show(this);

将其用于子表格:

use this for child form:

frmMain frm = this.Owner as frmMain;

(form parent = frmMain) 关键是,构成您公开的孩子的组件 祝你好运, 阿米尔(Amir)

(form parent=frmMain) The point is, the components that form the Child You''re Public good luck, Amir

social.msdn.microsoft/Forums/zh-CN/csharplanguage/thread/e0985e8a-bbc1-48bb-afc0-f965f797c92d/ [ ^ ] http: //stackstackflow/questions/2356337/c-how-to-show-a-child-form-within-a-mdi-container-form-which-its-windowstate [ ^ ] 使用C#引入MDI表单 [ ^ ] social.msdn.microsoft/Forums/en-US/csharplanguage/thread/e0985e8a-bbc1-48bb-afc0-f965f797c92d/[^] stackoverflow/questions/2356337/c-how-to-show-a-child-form-within-a-mdi-container-form-which-its-windowstate[^] Introduction to MDI Forms with C#[^]

更多推荐

MDI父母和子女表格

本文发布于:2023-10-28 03:57:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1535444.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表格   子女   父母   MDI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!