标题:请问这个怎么修改?
取消只看楼主
melody陈
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-8-6
 问题点数:0 回复次数:0 
请问这个怎么修改?
using System;
using System.Collections.Generic;
using
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MDI窗体的使用
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            Form2 frmChild1 = null;
            Form3 frmChild2 = null;
        }


        private void 打开子窗体一ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (frmChild1 == null)
            {
                frmChild1 = new Form2();
                frmChild1.MdiParent = this;
                frmChild1.Show();
            }
            else
            {
                if (frmChild1.IsDisposed)
                {
                    frmChild1 = new Form2();
                }
                frmChild1.MdiParent = this;
                frmChild1.Show();
                frmChild1.Focus();
            }
        }

        private void 水平排列ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.TileHorizontal);
        }

    }
}
搜索更多相关主题的帖子: null void private public 
2012-08-11 10:29



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-375085-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.655051 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved