namespace _8.MIDI窗体设计
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void 显示子窗体ToolStripMenuItem_Click(object sender, EventArgs e)
{
//点击显示子窗体控件时,显示出所有子窗体
Form2 frm2 = new Form2();
frm2.MdiParent = this;
frm2.Show();
Form3 frm3 = new Form3();
frm3.MdiParent = this;
frm3.Show();
Form4 frm4 = new Form4();
frm4.MdiParent = this;
frm4.Show();
}
private void 横向排列ToolStripMenuItem_Click(object sender, EventArgs e)
{
//对子窗体进行横向排列
LayoutMdi(MdiLayout.TileHorizontal);
}
private void 纵向排列ToolStripMenuItem_Click(object sender, EventArgs e)
{
//子窗体纵向排列
LayoutMdi(MdiLayout.TileVertical);
}
}
}
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。