多行字幕问题 [英] Multiline Caption Problem

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

问题描述

大家好
我正在尝试为网格设置多行标题.但是标题的第二行不可见.我尝试了以下代码行.但它只显示多行"
非常感谢您的帮助.在此先感谢.

Hello Everyone
I am trying to set a multiline caption for a Grid. But the second line of caption is not visible. I tried the following line of code. But it shows only "Multi-Line"
Any help is highly appreciated Thanks in advance.

TDBGrid1.Caption = "Multi-line" & vbCrLf & "Text"

推荐答案

您是否使标题足够高以显示两行?如果不是,请在设计器中将其拉伸到足够高的高度,或者通过将.Height属性设置为足够大的值以编程方式增加高度,以显示需要显示的文本行数.
Have you made the caption tall enough to show two lines? If not, stretch it out in the designer until it is tall enough, or programmatically increase the height by setting the .Height property to a large enough value to show the number of lines of text you need to display.


这篇关于多行字幕问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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