font color & font style

font color

FONT HIJAU FONT KUNING FONT MERAH

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
lblteks.FontStrikethru = True
Else
lblteks.FontStrikethru = False
End If
End Sub

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

Private Sub Cmdexit_Click()
End
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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s