且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

垂直菜单问题

更新时间:2023-11-17 17:02:10

将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.