G
Guest
Народ, подскажите, пожалуйста, как считать 8 символов из текстового файла в случайном порядке. Мой код ни в какие ворота не лезет
Код:
Imports System
Imports System.IO
Public Class Form1
Dim strReader As StreamReader = New StreamReader("TextFile1.txt")
Dim line As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Randomize()
For i = 1 To 9
strReader = Int((Rnd(8)) * 62)
Next
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
TextBox1 = strReader
End Sub
End Class