Kali ini saya akan membagikan tentang Cara Membuat Program Method Test dengan Visual Basic 6.0
Download Program Method Test Visual Basic 6.0
1. Buka Program Visual Basic 6.0
2. Desain Form seperti ini
3. Ubah Property
Form1-Caption-Method Test
List1-Name-List1
Combo1-Name-Combo1
Command1-Caption-Add
Command2-Caption-Clear
4. Copy code berikut lalu klik View Code dan pastekan
Private Sub Command1_Click()
List1.AddItem Combo1.Text
Combo1.SetFocus
End Sub
Private Sub Command2_Click()
List1.RemoveItem List1.ListIndex
End Sub
Private Sub Command3_Click()
List1.Clear
Combo1.SetFocus
End Sub
Private Sub Form_Load()
Combo1.AddItem "Didik"
Combo1.AddItem "Dian"
Combo1.AddItem "Slametno"
Combo1.AddItem "Eka"
Combo1.AddItem "Abid"
Combo1.AddItem "Syaquita"
Combo1.ListIndex = 0
End Sub
5. Lalu jalankan dengan menekan F5 maka tampilannya akan seperti ini
Download Program Method Test Visual Basic 6.0
Selamat Mencoba...!!!
No comments:
Post a Comment