在MDI父控件上重新放置子窗体 [英] Re-position a Child Form over a MDI Parent control

查看:78
本文介绍了在MDI父控件上重新放置子窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个MDI父母表格:MDI_Parent
在MDI_Parent表单上,我有一个面板控件:Panel_Main

我有一个孩子表格:cFrm_DS_List

我想单击子窗体(cFrm_DS_list)上的按钮,以将cFrm_DS_list窗体重新放置在MDI_Parent窗体的面板(Panel_Main)上.

黎明

I have a MDI Parent Form: MDI_Parent
On the MDI_Parent form I have a panel control: Panel_Main

I have a Child Form: cFrm_DS_List

I want to click a button on the child form (cFrm_DS_list) to re-position the cFrm_DS_list form over the panel (Panel_Main) of the MDI_Parent form.

ADawn

ADawn

推荐答案

在按钮的click事件中,引发一个事件.以mdi父级形式捕获它.在事件处理程序中,设置子代的位置.

In the button's click event, raise an event. Catch it in the mdi parent form. In the event handler, set the location of the child.

面板"上的内容是什么?意思是?子窗体放置在MDI父级的MDI客户区中. (对接的)面板不属于该区域.

what does "over the panel" mean? Child forms are placed inside the MDI parent's MDI client area. The (docked) panels do not belong to that area.


这篇关于在MDI父控件上重新放置子窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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