Hey DataMiser, Thanks again for your continuous help! I'm sorry I don't think I've fully grasped this code. I wrote a textfile contains just the case numbers:
Code:
1,4,3,2,4,2,3,1,3,2,4,3,1,2,4,3,2,1,4,3,4,1,2,4,3,4,2...etc
Then I used StreamReader to read the text file. But I get an error with using case 1,2,3,4. Do I have to declare the char values or do I have to write case "1"?
The error says:
Code:
Error 'Integer' values cannot be converted to 'Char'. Use 'Microsoft.VisualBasic.ChrW' to interpret a numeric value as a Unicode character or first convert it to 'String' to produce a digit.

The full code is here:
Code:
    Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3_PictureBox.Tick
        Timer3_PictureBox.Enabled = True
        Dim SequenceArray As String
        Dim ArrayIndex As String

        PictureBox0.Visible = True
        PictureBox1.Visible = False
        PictureBox2.Visible = False
        PictureBox3.Visible = False
        PictureBox4.Visible = False

        Dim AhaGame As String = "C:\AhaImageText.txt"

        Dim objReader1 As New System.IO.StreamReader(AhaGame)

        Select Case SequenceArray(ArrayIndex)
            Case 1
                PictureBox1.Visible = True
            Case 2
                PictureBox2.Visible = True
            Case 3
                PictureBox3.Visible = True
            Case 4
                PictureBox4.Visible = True
        End Select

        ArrayIndex += 1

        objReader1.Close()

    End Sub