如何在其他表单中调用父表单项 [英] how to call parent form items in another form

查看:70
本文介绍了如何在其他表单中调用父表单项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何以其他形式使用mparentparent的菜单条中的item.
在mdiparent中,我有一个项目add,我想在form6中使用它,但不是他们的成员,我该如何在form6中称呼这个项目(add).\
谢谢您的帮助.

how can i use item s in menustrip in mdiparent in other forms.
example in mdiparent ihave an item add and i wanna to use it in form6 which is not their member how can i call this item(add)in form6.\
thank you for your help.

推荐答案

您可以将主表单传递给子表单(在其构造函数中).
You can pass the main form to the child forms (in their constructor).


这篇关于如何在其他表单中调用父表单项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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