Tugas VB 1

1

Private Sub chkbold_Click()
If chkbold.Value = 1 Then
label1.FontBold = True
Else
label1.FontBold = False
End If
End Sub

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

Private Sub chkstrikeout_Click()
If chkstrikeout.Value = 1 Then
label1.FontStrikethru = True
Else
label1.FontStrikethru = False
End If
End Sub

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

Private Sub cmdkeluar_Click()
End
End Sub

Private Sub optBiru_Click()
lbljudul.ForeColor = vbBlue
End Sub

Private Sub optHijau_Click()
label1.ForeColor = vbGreen
End Sub

Private Sub optMerah_Click()
label1.ForeColor = vbRed
End Sub

Private Sub optKuning_Click()
label1.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 )

Gambar Twitter

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

Foto Facebook

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

Foto Google+

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

Connecting to %s