垂直菜单问题 [英] vertical menu problem

查看:103
本文介绍了垂直菜单问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在c#3.5中为基于窗口的应用程序创建垂直菜单.

how to create a vertical menu in c# 3.5 for window based application

推荐答案

将ToolStripContainer添加到窗体.使用Dock.Fill.将其设置为仅接受左侧的工具条(我想是右侧).

将工具条添加到容器中.

将DropDownButtons添加到工具栏-这些是您的菜单标题;将选项添加到"DropDownButtons"选项列表中.
Add a ToolStripContainer to the form. Use Dock.Fill. Set it to only accept toolstrips on the left (or right, I guess).

Add a toolstrip to the container.

Add DropDownButtons to the toolstrip - these are your menu headings; add options to the DropDownButtons'' option lists.


这篇关于垂直菜单问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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