using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void 加载子窗体ToolStripMenultem_Click(object sender,EventArgs e)
{
Form2 frm2 = new Form2();
frm2.MdiParent = this;
frm2.Show();
Form3 frm3 = new Form3();
frm3.MdiParent = this;
frm3.Show();
}
private void 垂直平铺ToolStripltem_Click(object sender,EventArgs e)
{
LayoutMdi(MdiLayout.TileVertical);
}
}
}
MDI父窗设置也设了;子窗也添加了;代码全按书上写的;结果生成却没有子窗口!
我彻底懵了!