Problem resolved by using Console.KeyAvailable

by Solitaire (Login Solitaire1)
S

Sub Main()
Dim dat As String
Do
    Console.WriteLine("Inside loop")
    If Console.KeyAvailable Then
       Console.WriteLine()
       dat = Console.ReadLine()
      Exit Do
    End If
Loop
Console.WriteLine("Exited loop")
Console.ReadLine()
End Sub

Posted on Sep 16, 2008, 1:56 PM

Respond to this message   

Return to Index