tugas 1 font color dan style

LINTANG1

Private Sub ChkBold_Click()
‘membuat teks tebal
If ChkBold.Value = 1 Then
lblTeks.FontBold = True
Else
lblTeks.FontBold = False
End If
End Sub

Private Sub ChkItalic_Click()
‘membuat teks miring
If ChkItalic.Value = 1 Then
lblTeks.FontItalic = True
Else
lblTeks.FontItalic = False
End If
End Sub

Private Sub ChkStrikeout_Click()
‘membuat teks coret
If ChkStrikeout.Value = 1 Then
lblTeks.FontStrikethru = True
Else
lblTeks.FontStrikethru = False
End If
End Sub

Private Sub ChkUnderline_Click()
‘membuat teks garis bawah
If ChkUnderline.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()
‘membuat teks berwarna biru
lblTeks.ForeColor = vbBlue
End Sub

Private Sub OptGreen_Click()
‘membuat teks berwarna hijau
lblTeks.ForeColor = vbGreen
End Sub

Private Sub OptRed_Click()
‘membuat teks berwarna merah
lblTeks.ForeColor = vbRed
End Sub

Private Sub OptYellow_Click()
‘membuat teks berwana kuning
lblTeks.ForeColor = vbYellow
End Sub

Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

w

Connecting to %s