开发者

Multi-line button labels

Is there an easy way to have two lines of button.text where you specify each line individually? Also, t开发者_如何学运维here seem to be large margins on the buttons so the text font needs to be quite small to fit. Is there a way to allow the text to use more of the button area?


The way I would do a two-line text implementation is:

Dim t1,t2 As String
t1="This is line one"
t2="This is line two"
...
MyButton.Text = t1 & CRLF & t2

The CRLF performs a Carriage Return and Line feed thus splitting the text up

I can't help with the padding issue though. Have you tried changing the font size?

MyButton.TextSize=9
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜