tugas 1

1

 

Private Sub chkBold_Click()
If chkBold.Value = 1 Then
lblText.FontBold = True
Else
lblText.FontBold = False
End If
End Sub

Private Sub chkitalic_Click()
If chkitalic.Value = 1 Then
lblText.FontItalic = True
Else
lblText.FontItalic = False
End If
End Sub

Private Sub chkstrike_Click()
If chkstrike.Value = 1 Then
lblText.FontStrikethru = True
Else
lblText.FontStrikethru = False
End If
End Sub

Private Sub chkunderline_Click()
If chkunderline.Value = 1 Then
lblText.FontUnderline = True
Else
lblText.FontUnderline = False
End If
End Sub

Private Sub Cmdexit_Click()
Unload Me
End Sub

Private Sub optBlue_Click()
lblText.ForeColor = vbBlue
End Sub

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

Private Sub OptRed_Click()
lblText.ForeColor = vbRed
End Sub

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

Advertisements

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