水平滚动条的取值范围[12,72]。改变滚动条可以控制标签文字的大小,并同时在文本框中显示标签的字号;
1个回答
展开全部
Private Sub Form_Load()
HScroll1.Min = 12
HScroll1.Max = 72
Label1.FontSize = HScroll1.Value
Text1.Text = HScroll1.Value
Label1.AutoSize = True
End Sub
Private Sub HScroll1_Change()
Label1.FontSize = HScroll1.Value
Text1.Text = HScroll1.Value
End Sub
HScroll1.Min = 12
HScroll1.Max = 72
Label1.FontSize = HScroll1.Value
Text1.Text = HScroll1.Value
Label1.AutoSize = True
End Sub
Private Sub HScroll1_Change()
Label1.FontSize = HScroll1.Value
Text1.Text = HScroll1.Value
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询