Wierd Problem MDI Layout

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Thomas

    #1

    Wierd Problem MDI Layout

    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.EventArg s e)
    {
    LayoutMdi(MdiLa yout.TileVertic al);
    }

    private void miTileHorizonta l_Click(object sender, System.EventArg s e)
    {
    LayoutMdi(MdiLa yout.TileHorizo ntal);
    }

    private void miCascade_Click (object sender, System.EventArg s e)
    {
    LayoutMdi(MdiLa yout.Cascade);
    }

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


  • Phil

    #2
    Re: Wierd Problem MDI Layout

    Hi,

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

    private void menuCascade_Cli ck(object sender, System.EventArg s e)
    {
    this.LayoutMdi( MdiLayout.Casca de);
    }

    Phil D


    "John Thomas" <jthomas@hotmai l.com> wrote in message
    news:Oes6L9BrDH A.2772@TK2MSFTN GP10.phx.gbl...[color=blue]
    > 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.EventArg s e)
    > {
    > LayoutMdi(MdiLa yout.TileVertic al);
    > }
    >
    > private void miTileHorizonta l_Click(object sender, System.EventArg s e)
    > {
    > LayoutMdi(MdiLa yout.TileHorizo ntal);
    > }
    >
    > private void miCascade_Click (object sender, System.EventArg s e)
    > {
    > LayoutMdi(MdiLa yout.Cascade);
    > }
    >
    > I verified with debug and messagebox's that it is wiring the events
    > correctly, but I am not getting the layouts.
    >
    >[/color]


    Comment

    Working...