以主要形式加载表格 [英] Loading form in main form

查看:96
本文介绍了以主要形式加载表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个具有主屏幕的应用程序,当我按下按钮时,我想在不打开新屏幕的情况下将新表格加载到主屏幕中.我打开的每个新屏幕都必须在主屏幕中打开.我尝试使用面板并将此新表单添加到面板中,但我得到==>顶级控件不能添加到控件中.

I'm trying to create an application that has a main screen and when i push a button i would like to load a new form into the main screen, without opening a new screen. Every new screen i open would have to open in the main screen. I tried using a panel and adding this new form into the panel but i get ==> Top-level control cannot be added to a control.

有人知道我的问题的解决方案吗?

Is there anyone who knows a solution to my problem?

Greetz

推荐答案

U必须使用MDI(多文档接口),其中将MainScreen用作Parent,并以其他所有形式您想在MainScreen中作为父级的子级打开.您在表单属性中定义了MDI父子属性,您可以通过上述属性来实现.

U have to use MDI(Multiple Document Interface) wherein make your MainScreen as the Parent and every other form that you want to open within the MainScreen as a child of the parent. U have MDI parent child properties defined in Form Properties with which u can achieve above.

此致

Nitin


这篇关于以主要形式加载表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆