Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

Struggling with VB Code PLEASE HELP!

$
0
0
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!

Viewing all articles
Browse latest Browse all 21090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>