Private Sub Timer1_Timer() static curSize as integer curSize = curSize + 1 label1.fontsize = curSize if curSize >= 50 then curSize = 1 end if End Sub
Public LbFontSize as integer Public LbFontSizeChange as Boolean Private Sub Timer1_Timer() LbFontSize = Label1.FontSize Select case LbFontSizeChange case False LbFontSize=LbFontSize+1 label1.fontsize =LbFontSize if LbFontSize=50 then LbFontSizeChange=True case True LbFontSize=LbFontSize-1 label1.fontsize =LbFontSize if LbFontSize=1 then LbFontSizeChange=False End Select End Sub
static curSize as integer
curSize = curSize + 1
label1.fontsize = curSize
if curSize >= 50 then
curSize = 1
end if
End Sub
Public LbFontSizeChange as Boolean
Private Sub Timer1_Timer()
LbFontSize = Label1.FontSize
Select case LbFontSizeChange
case False
LbFontSize=LbFontSize+1
label1.fontsize =LbFontSize
if LbFontSize=50 then LbFontSizeChange=True
case True
LbFontSize=LbFontSize-1
label1.fontsize =LbFontSize
if LbFontSize=1 then LbFontSizeChange=False
End Select
End Sub