Label5.FontName = "Times New Roman"

来源:百度知道 编辑:UC知道 时间:2024/05/25 09:16:57
VB中怎么解释以下内容:
Private Sub Timer1_Timer()
Label5.FontName = "Times New Roman"
Label5.FontSize = 36
Label5.Caption = Time$
End Sub

Private Sub Timer1_Timer() 'timer事件里
Label5.FontName = "Times New Roman" '设置label5的字体为:Times New Roman
Label5.FontSize = 36 '字号为:36
Label5.Caption = Time$ 'label5的内容为:Time$()函数返回值
End Sub