Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种简单的方法可以让两行 button.text 单独指定每一行?此外,按钮上的边距似乎很大,因此文本字体需要非常小才能适应。有没有办法让文本使用更多的按钮区域?
我会做一个两行文本实现的方式是:
Dim t1,t2 As String t1="This is line one" t2="This is line two" ... MyButton.Text = t1 & CRLF & t2
CRLF 执行回车和换行,从而拆分文本
不过,我无法帮助解决填充问题。您是否尝试过更改字体大小?
MyButton.TextSize=9