Private rnd As New Random
Private Sub Take10Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Take10Button.Click
Dim words = IO.File.ReadAllText("document.txt").Split(" "c)
Dim random10 = words.OrderBy(Function() rnd.Next).Take(10)
Me.ResultTextBox.Lines = random10.ToArray
End Sub
actually i can open the text file to my listbox1 already. but now i want to click a button and generate 10 random words from listbox1 to listbox2. can i know the coding at button 2 for this pleaseeeeeee