如何创建像菜单样式的菜单栏? [英] how to create menubar like tab style ?

查看:144
本文介绍了如何创建像菜单样式的菜单栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C#(不是WPF)在winform中开发...



i想创建一个如下图所示的菜单栏?



或任何其他款式但是菜单栏在垂直方向左侧显示可能与否?



https://skydrive.live .com /?cid = E5D0ACBF3E3FC986& id = E5D0ACBF3E3FC986%21107#cid = E5D0ACBF3E3FC986& id = E5D0ACBF3E3FC986%21115& v = 3 [ ^ ]



其他链接



HTTP://社会。女士dn.microsoft.com/Forums/en-US/3947fee2-6ea3-46e4-9162-1c2f4c2b7e8d/how-to-create-menu-bar-in-tab-style-?forum=netfxbcl&prof=required [ ^ ]









问候

AR

i develop in winform using C# ( not WPF )...

i want to create a menu bar like below image ?

or any other style but menubar display the left handside at vertically its possible or not ?

https://skydrive.live.com/?cid=E5D0ACBF3E3FC986&id=E5D0ACBF3E3FC986%21107#cid=E5D0ACBF3E3FC986&id=E5D0ACBF3E3FC986%21115&v=3[^]

other link

http://social.msdn.microsoft.com/Forums/en-US/3947fee2-6ea3-46e4-9162-1c2f4c2b7e8d/how-to-create-menu-bar-in-tab-style-?forum=netfxbcl&prof=required[^]




Regards
AR

推荐答案

简单。请像如下: -

1.创建MDI表格。

2.使用菜单条控制,设置以下属性menustrip

Its simple.Please go as follows:-
1.Create MDI Form.
2.take menu strip control on it, set following properties of menustrip
menuStrip1.Dock = DockStyle.Left;




menuStrip1.layoutStyle=VerticalStackWithOverflow;



3.使用backgroundImage,padding& menustrip的字体属性让你看起来如你所愿。

4.for eachustrip item_click在MDI中加载特定的子表单。也设置


3.make use of backgroundImage, padding & font property of menustrip to give look as you like.
4.for each menustrip item_click load specific child form in MDI.also set

Form1.Dock = DockStyle.Fill;


这篇关于如何创建像菜单样式的菜单栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆