I have two listbox and two button, one button is assign another is unassign in listbox1 have adminNo I wan the listbox1 of adminno go to listbox2 one by one when pressing button assign and i also can unassign go back to listbox1 one by one also

is it: listbox1.item.forword(sqlRead("AdminNo").ToString)

In your assign button Click event simple put the following lines

'Transfer item from ListBox1 To ListBox2
ListBox2.Items.Add(ListBox1.SelectedItem)

'Remove transferred item from ListBox1
ListBox1.Items.Remove(ListBox1.SelectedItem)

And in unassign button change the names of the listboxes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.