帮助如何将语句从MDI子窗体传递到父窗体

帮助如何将语句从MDI子窗体传递到父窗体

本文介绍了帮助如何将语句从MDI子窗体传递到父窗体.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用c#2008 Express Edition.
我有一个MDI子窗体,试图恢复以前被隐藏的MDI父窗体的菜单结构:
这是脚本的一部分-
私有void PsAdmin_continueBtn_Click(对象发送方,EventArgs e)
........
....................... > this.Close();//MDI子窗体关闭自身
}
如果有人提出建议,我非常感谢...

I am using c# 2008 express edition.
I have an MDI Child Forms trying to revive the menustripe of the MDI Parent Forms which previuosly was hiden:
Here is the a part of the script-
       private void PsAdmin_continueBtn_Click(object sender, EventArgs e)
        {
            FrmContainer fm = new FrmContainer();
            Starter Starter_child = new Starter(fm);
            ...........
            ...........
            fm.menuStrip1.Show();//menu stripe was previously Hidden in the MDI oarent Forms
            this.Close();//the MDI child Forms  closing itself
        }
I appreciate if there is anybody with suggestion ...

推荐答案

((MenuStrip)this.MdiParent.Controls.Find("menuStrip1", true)[0]).Dowhateveryouwant;


这篇关于帮助如何将语句从MDI子窗体传递到父窗体.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 02:13