using System;
using System.Windows.Forms;
namespace MdiSample
{
public partial class FormMain : Form
{
public FormMain()
{
InitializeComponent();
}
private void menuItemNew_Click(object sender, EventArgs e)
{
FormChild newMDIChild = new FormChild();
newMDIChild.MdiParent = this; // Set the Parent Form
newMDIChild.Show(); // Display the new form
}
private void menuItemCascade_Click(object sender, EventArgs e)
{
this.LayoutMdi(MdiLayout.Cascade);
}
private void menuItemTileHorizontal_Click(object sender, EventArgs e)
{
this.LayoutMdi(MdiLayout.TileHorizontal);
}
private void menuItemTileVertical_Click(object sender, EventArgs e)
{
this.LayoutMdi(MdiLayout.TileVertical);
}
}
}
using System.Windows.Forms;
namespace MdiSample
{
public partial class FormMain : Form
{
public FormMain()
{
InitializeComponent();
}
private void menuItemNew_Click(object sender, EventArgs e)
{
FormChild newMDIChild = new FormChild();
newMDIChild.MdiParent = this; // Set the Parent Form
newMDIChild.Show(); // Display the new form
}
private void menuItemCascade_Click(object sender, EventArgs e)
{
this.LayoutMdi(MdiLayout.Cascade);
}
private void menuItemTileHorizontal_Click(object sender, EventArgs e)
{
this.LayoutMdi(MdiLayout.TileHorizontal);
}
private void menuItemTileVertical_Click(object sender, EventArgs e)
{
this.LayoutMdi(MdiLayout.TileVertical);
}
}
}
'Code > C#' 카테고리의 다른 글
| [C#] DockPanel Suite Sample (0) | 2009.01.05 |
|---|---|
| [C#] DockPanel Suite Sample (0) | 2009.01.05 |
| [C#] SqlCeDataAdapter, SqlCeCommandBuilder (0) | 2009.01.01 |
| [C#] DataSet, Primary Key, Foreign Key Constraint (0) | 2008.12.22 |
| [C#] DataSet, BindingSource, BindingNavigator, DataGridView.DataError, BindingSource.AddNew (0) | 2008.12.21 |
WindowsFormsApplication3.zip