Tabcontrol制表符宽度 [英] Tabcontrol Tab width

查看:216
本文介绍了Tabcontrol制表符宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在窗体上有一个tabcontrol,上面有代码,可以在运行时动态添加标签.

控件上的sizemode设置为正常,但是当我尝试添加一个带有长名称的选项卡时,它将它分成两行,看起来很丑.

有没有办法设置制表符(而不是制表符页)的宽度?

I have a tabcontrol on a form with code to dynamically add tabs at runtime.

The sizemode on the control is set to normal, but when I try to add a tab with a long name, it splits it over 2 lines and looks ugly.

Is there any way to set the width of a tab (not the tabpage)?

推荐答案

我认为您需要将SizeMode设置为Fixed至所需大小.但这将影响所有标签,而不仅仅是其中的一个...
I think you need to set SizeMode to Fixed and ItemSize to the size you want. But that''s going to affect ALL tabs, not just one of them...


这篇关于Tabcontrol制表符宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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