如何创建一个选项卡控件没有标签头的Windows窗体? [英] How do I create a Tab Control with no Tab Header in Windows form?

查看:88
本文介绍了如何创建一个选项卡控件没有标签头的Windows窗体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建使用选项卡控件Windows窗体,但它有它一个头。我想隐藏它。我不能使用选项卡控件的任何属性做到这一点。是否有隐藏选项卡控件的选项卡头不通过code定义的任何财产?

I have created a Windows form using a Tab Control, but it has a header with it. I want to hide it. I am not able to do it using any properties of the Tab Control. Is there any property defined for hiding the tab header for the Tab Control without going through the code?

推荐答案

使用下面的code隐藏的选项卡,或在设计上设置这些属性。

Use following code to hide the tabs or set these properties in design.

    tabControl.Appearance = TabAppearance.FlatButtons;
    tabControl.ItemSize = new Size(0, 1);
    tabControl.SizeMode = TabSizeMode.Fixed;

这篇关于如何创建一个选项卡控件没有标签头的Windows窗体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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