我有一个标签,目前可能包含6到x个字符长度的单词?但是,当单词变得太大时,我希望文本更改大小,使其适合相同的空间量。有没有办法做到这一点?
答案 0 :(得分:2)
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