如何创建一个选项卡控件没有标签头的Windows窗体?窗体、控件、创建一个、选项卡

2023-09-04 10:00:54 作者:对不起,沵の爱已停机

我创建使用选项卡控件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;
 
精彩推荐
图片推荐