2个回答
2013-05-10
展开全部
System.Windows.Forms.ToolStripMenuItem mnuitm = new System.Windows.Forms.ToolStripMenuItem();
mnuitm = (System.Windows.Forms.ToolStripMenuItem)sender;
switch (mnuitm.Text)
{
case "层叠":
this.LayoutMdi(System.Windows.Forms.MdiLayout.Cascade); //层叠窗口
break;
case "横向平铺":
this.LayoutMdi(System.Windows.Forms.MdiLayout.TileHorizontal); //水平平铺
break;
case "纵向平铺":
this.LayoutMdi(System.Windows.Forms.MdiLayout.TileVertical); //垂直平铺
break;
case "全部关闭":
break;
}
mnuitm = (System.Windows.Forms.ToolStripMenuItem)sender;
switch (mnuitm.Text)
{
case "层叠":
this.LayoutMdi(System.Windows.Forms.MdiLayout.Cascade); //层叠窗口
break;
case "横向平铺":
this.LayoutMdi(System.Windows.Forms.MdiLayout.TileHorizontal); //水平平铺
break;
case "纵向平铺":
this.LayoutMdi(System.Windows.Forms.MdiLayout.TileVertical); //垂直平铺
break;
case "全部关闭":
break;
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-05-10
展开全部
this.LayoutMdi(MdiLayout.TileVertical);//垂直平铺
this.LayoutMdi(MdiLayout.TileHorizontal);//水平平铺
this.LayoutMdi(MdiLayout.Cascade);//层叠
this.LayoutMdi(MdiLayout.TileHorizontal);//水平平铺
this.LayoutMdi(MdiLayout.Cascade);//层叠
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询