Tugas 2 Program 5 (Merubah Font dan Style)
Private Sub Check1_Click()
If Check1.Value = 0 Then
Label1.FontBold =
False
Else
If Check1.Value = 1 Then
Label1.FontBold =
True
End If
End If
End Sub
Private Sub Check2_Click()
If Check2.Value = 0 Then
Label1.FontItalic
= False
Else
If Check2.Value = 1 Then
Label1.FontItalic
= True
End If
End If
End Sub
Private Sub Check3_Click()
If Check3.Value = 0 Then
Label1.FontUnderline = False
Else
If Check3.Value = 1 Then
Label1.FontUnderline = True
End If
End If
End Sub
Private Sub Check4_Click()
If Check4.Value = 0 Then
Label1.FontStrikethru = False
Else
If Check4.Value = 1 Then
Label1.FontStrikethru = True
End If
End If
End Sub
Private Sub Command1_Click()
End
End Sub
Private Sub Option1_Click()
If Option1.Value = True Then
Label1.ForeColor =
vbRed
End If
End Sub
Private Sub Option2_Click()
If Option2.Value = True Then
Label1.ForeColor =
vbGreen
End If
End Sub
Private Sub Option3_Click()
If Option3.Value = True Then
Label1.ForeColor =
vbBlue
End If
End Sub
Private Sub Option4_Click()
If Option4.Value = True Then
Label1.ForeColor =
vbYellow
End If
End Sub
0 komentar: