Tugas 2.5


Private Sub Chkbold_Click()
If Chkbold.Value = 1 Then
lblteks.FontBold = True
Else

lblteks.FontBold = False
End If
End Sub

Private Sub Chkitalic_Click()
If Chkitalic.Value = 1 Then
lblteks.FontItalic = True
Else
lblteks.FontItalic = False
End If
End Sub

Private Sub chkstrike_Click()
If chkstrike.Value = 1 Then
'1710021hilal
lblteks.FontStrikethru = True
Else
lblteks.FontStrikethru = False
End If
End Sub

Private Sub chkunder_Click()
If chkunder.Value = 1 Then
lblteks.FontUnderline = True
Else
lblteks.FontUnderline = False
End If
End Sub

Private Sub cmdexit_Click()
Unload Me
End Sub

Private Sub optblue_Click()
lblteks.ForeColor = vbBlue
End Sub

Private Sub optgreen_Click()
lblteks.ForeColor = vbGreen
End Sub

Private Sub optred_Click()
lblteks.ForeColor = vbRed
End Sub

Private Sub optyellow_Click()
lblteks.ForeColor = vbYellow
End Sub

Komentar

Postingan populer dari blog ini