Y could not move the listbox admin no to another listbox

Private Sub btnAssign_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAssign.Click

    'If ListBoxassign.SelectedItem IsNot Nothing Then

    ListBoxall.Items.Add(ListBoxassign.SelectedItem)
    'End If
End Sub

Private Sub btnUnassign_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUnassign.Click
    ListBoxassign.Items.Remove(ListBoxassign.SelectedItem)
End Sub

End Class

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.