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.
我有一个标签,目前可能包含长度在 6 到 x 个字符之间的单词?但是,当单词变得太大时,我希望文本改变大小以适应相同的空间量。有没有办法做到这一点?
Private Sub Form1_SizeChanged(sender As Object, e As System.EventArgs) Handles Me.SizeChanged Label1.Size = New Size(ClientSize.Width / 3, ClientSize.Height / 3) Label1.Font = New Font("Arial", ClientSize.Height / 20) End Sub