I had to move names from one list to another and then write a code to group those names randomly from a listbox into a textbox and then reset the names now labeled Group 1 and so on back to listbox1. I need to delete the word Group and remove the vbnewlines. below is an example of what i need to happen and what I have so far that is not working.
txtbox listbox1
Group name
name
name name
name name
Group
name
name
Private Sub ButtonReset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonReset.Click
Dim NewArray() As String = txtboxgroups.Text.Split
For Each iteam As String In NewArray
ListBox1.Items.Add(iteam)
Next
txtboxgroups.Clear()
ListBox1.Items.Remove("Group")
End Sub
End Class
PLEASE HELP!
txtbox listbox1
Group name
name
name name
name name
Group
name
name
Private Sub ButtonReset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonReset.Click
Dim NewArray() As String = txtboxgroups.Text.Split
For Each iteam As String In NewArray
ListBox1.Items.Add(iteam)
Next
txtboxgroups.Clear()
ListBox1.Items.Remove("Group")
End Sub
End Class
PLEASE HELP!