mardi 31 mars 2015

Emulating blocking Console keyboard input in a form

I need to write a console emulator in C#. I want to replace System.Console with something that can work in full-screen. My approach is to make a maximized Form with no borders.


One challenge I am facing is how to convert the event-driven, non-blocking keyboard input into a blocking one, or more specifically, how would you go about implementing an equivalent of Console.ReadKey() in a Windows Form.


Aucun commentaire:

Enregistrer un commentaire