Archive | January 2014

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!!!

This entry was posted on 10/01/2014, in Uncategorized. 2 Comments