调整tabcontrol标头的大小 [英] Resize tabcontrol's header

查看:614
本文介绍了调整tabcontrol标头的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

您是否有关于如何动态调整Tab控件的标题大小以适合其中的文本的提示?

谢谢.

Hello,

Do you have any tips of how to dynamically resize a header of the tabcontrol to fit a the text inside?

Thank you.

推荐答案

尝试:myTabControl.SizeMode = TabSizeMode.Normal;它通常对我有用.
Try: myTabControl.SizeMode = TabSizeMode.Normal; It does the job for me usually.


是的,现在我当您设置DrawMode = OwnerDrawFixed时,发现了一个很好的主意以及您所说的Toli动态调整tabcontrol标题的大小.

当您在tabcontrol中加载新标签时,请确保您在文本前后添加一些空格.

案件结案.还有谢谢.
Yes it does and now i found a very good idea along with what you said Toli to dynamically resize tabcontrol''s header, when you setted DrawMode=OwnerDrawFixed.

When you load a new tab in tabcontrol , make sure u put some spaces after and before text.

Case closed. And thx for tip.


这篇关于调整tabcontrol标头的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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