This is in the Console subforum... so I would assume the console.You can handle KeyPress events and write the Char to a text file no problem, but what kind of UI do you propose for this?
Sub Main()
Dim fWriter As New IO.StreamWriter(New IO.FileStream("C:\file.txt"))
Dim k as ConsoleKey
Dim ContinueLoop As Boolean = True
While ContinueLoop = True
k = Console.ReadKey()
If (k = ConsoleKey.Escape) Then
ContinueLoop = False
Else
fWriter.Write(k.ToString())
fWriter.Flush()
End If
End While
fWriter.Close()
End Sub
Rather a good point. I probably had threads from multiple forums open and neglected to notice that. I should be more observant.This is in the Console subforum... so I would assume the console.