Private Sub Biru_Click()
Label1.ForeColor = vbBlue
End Sub
Private Sub Command1_Click()
End
End Sub
Private Sub Coret_Click()
'membuat teks coret
If Coret.Value = 1 Then
Label1.FontStrikethru = True
Else
Label1.FontStrikethru = False
End If
End Sub
Private Sub Garisbawah_Click()
'membuat garis bawah
If Garisbawah.Value = 1 Then
Label1.FontUnderline = True
Else
Label.FontUnderline = False
End If
End Sub
Private Sub Kuning_Click()
Label1.ForeColor = vbYellow
End Sub
Private Sub Merah_Click()
Label1.ForeColor = vbRed
End Sub
Private Sub Hijau_Click()
Label1.ForeColor = vbGreen
End Sub
Private Sub Miring_Click()
'membuat teks miring
If Miring.Value = 1 Then
Label1.FontItalic = True
Else
Label1.FontItalic = False
End If
End Sub
Private Sub Tebal_Click()
'membuat teks tebal
If Tebal.Value = 1 Then
Label1.FontBold = True
Else
Label1.FontBold = False
End If
End Sub
Tidak ada komentar:
Posting Komentar