Add items to the textbox.Then move themt, to another list/combo box.
A) Property :
Listbox : NAME-List1,LIST-(Blank) Listbox : NAME-List2,LIST-(Blank) Textbox : NAME-Text1,Text- (Blank) CommandButton-NAME- Command3,Caption-Add CommandButton-NAME- Command1,Caption- è CommandButton-NAME- Command2,Caption- ç |
B) Attaching Code to the Object :
Private Sub Command1_Click() List2.AddItem List1.List(List1.ListIndex) List1.RemoveItem List1.ListIndex End Sub Private Sub Command2_Click() List1.AddItem List2.List(List2.ListIndex) List2.RemoveItem List2.ListIndex End Sub Private Sub Command3_Click() List1.AddItem Text1.Text End Sub |
=========================================================================
Back to Home & VB