Pada bagian Code Editor ketikkan kode programnya sebagai berikut : Private Sub Form_Load() Combo1.AddItem “Umar” Combo1.AddItem “Salman” Combo1.AddItem “Halimah” Combo1.AddItem “Shafira” End Sub Private Sub Command1_Click() List1.AddItem Combo1.Text End Sub Private Sub Command2_Click() List1.RemoveItem List1.ListIndex End Sub Private Sub Command3_Click() List1.Clear End Sub Simpan Form2 (nama file : Lat2.frm).
Selanjutnya silahkan unduh file lengkapnya disini.
Comments