创建一个简单的多选项卡表单
我需要这样的东西,图像列出了几个选项卡,每个选项卡单击后都会带您进入窗口中各自的形式,我只需要类似这样的外观和感觉。 但我需要将选项卡垂直堆叠,而不是水平堆叠。我只需要 3 个不同选项卡中的 3 个多个表单。我想要基本的外观和感觉,就像右键单击我的电脑 → 属性时的系统属性窗口。
I need something like this, the image list several tabs each when clicked takes you to its respective form within the window, I just need the look and feel of something like this.
But instead of stacking tabs horizontally I need them stacked up vertically. I just need 3 multiple forms in 3 different tabs. I want the basic look and feel like the System Properties window when you right click My Computer → Properties.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
TabControl 有一个名为“Alignment”的属性,具有四个可能的枚举值(上、左、右、下)。默认情况下,该值设置为“顶部”,但如果将其设置为“左侧”,选项卡将显示在 TabControl 的左侧。
The TabControl has a property called 'Alignment' with four possible enum-values (Top, Left, Right, Bottom). By default the value is set to Top but if you set it to Left, the tabs will appear on the left side of the TabControl.