Membuat Program Sederhana dengan VB.6

Tampilan Awal :

Tampilan di atas terdiri dari 2 label, 1 text, 2 command button, 2 checkbox, 2 option button dan 1 frame.

Coding :

Private Sub Check1_Click()
Label2.FontBold = Check1.Value
End Sub

Private Sub Check2_Click()
Label2.FontItalic = Check2.Value
End Sub

Private Sub Command1_Click()
Label2.Caption = Text1.Text
Label2.ForeColor = vbBlue
Label2.BackColor = vbGreen

End Sub

Private Sub Option1_Click()
Label2.ForeColor = vbRed
End Sub

Private Sub Option2_Click()
Label2.ForeColor = vbYellow
End Sub

Silakan Mengerjakan!!!

2 thoughts on “Membuat Program Sederhana dengan VB.6

Leave a Reply

Your email address will not be published. Required fields are marked *


*