Wierd Problem MDI Layout

  • Thread starter Thread starter John Thomas
  • Start date Start date
J

John Thomas

I made a MDI application, and added the three menu items.

Tile Vertical
Tile Horiztonal
Cascade

The code I used:

private void miTileVertical_Click(object sender, System.EventArgs e)
{
LayoutMdi(MdiLayout.TileVertical);
}

private void miTileHorizontal_Click(object sender, System.EventArgs e)
{
LayoutMdi(MdiLayout.TileHorizontal);
}

private void miCascade_Click(object sender, System.EventArgs e)
{
LayoutMdi(MdiLayout.Cascade);
}

I verified with debug and messagebox's that it is wiring the events
correctly, but I am not getting the layouts.
 
Hi,

This works for me, think you just need to include "this".

private void menuCascade_Click(object sender, System.EventArgs e)
{
this.LayoutMdi(MdiLayout.Cascade);
}

Phil D
 
Back
Top