MDI窗体容器中,相同窗体只显示一个

private frmChannelInfo myChannelInfo = null;

        private void tsbChannelInfo_Click(object sender, EventArgs e)
        {
            if (myChannelInfo != null && myChannelInfo.Created)
            {
                myChannelInfo.Focus();
                return;
            }
            myChannelInfo = new frmChannelInfo();
            myChannelInfo.MdiParent = this;
            myChannelInfo.Show();
        }

posted @ 2012-10-23 13:36  海乐学习  阅读(584)  评论(0编辑  收藏  举报