[Mono-dev] ConsoleKey

Alessandro eklypse+mono at gmail.com
Tue Dec 18 14:30:52 EST 2007


I am trying to develop a very simple application that will collect key
presses, and the time in which those keys were pressed.  In attempting
this, I am using the Console.ReadKey(true) method, as given in the
sample code here:
http://msdn2.microsoft.com/en-us/library/system.consolekeyinfo.aspx

The problem is that while the example suggests that the system should
wait until a key is pressed before continuing, my version (developed
using MonoDevelop) goes into an infinite loop saying that the user has
pressed 0.  Is there any way to fix this problem?

Thanks,
-- 
Alessandro Gagliardi
Integrative Neuroscience Program
Rutgers University Mind Brain Analysis
alessandro at gagliardi.name



More information about the Mono-devel-list mailing list