Tugas 2.5 font color & font style
Source kode :
Private Sub chkun_Click()
If chkun.Value = 1 Then
lbltext.FontUnderline = True
Else
lbltext.FontUnderline = False
End If
End Sub
Private Sub chkbo_Click()
If chkbo.Value = 1 Then
lbltext.FontBold = True
Else
lbltext.FontBold = False
End If
End Sub
Private Sub chksri_Click()
If chksri.Value = 1 Then
lbltext.FontStrikethru = True
Else
lbltext.FontStrikethru = False
End If
End Sub
Private Sub chkita_Click()
If chkita.Value = 1 Then
lbltext.FontItalic = True
Else
lbltext.FontItalic = False
End If
End Sub
Private Sub opngreen_Click()
lbltext.ForeColor = vbGreen
End Sub
Private Sub opnblue_Click()
lbltext.ForeColor = vbBlue
End Sub
Private Sub opnred_Click()
lbltext.ForeColor = vbRed
End Sub
Private Sub opnyellow_Click()
lbltext.ForeColor = vbYellow
End Sub
Private Sub cmdkeluar_Click()
Unload Me
End Sub
Tidak ada komentar:
Posting Komentar