I have code in a loop, for example a while loop. My question is, how can I use the while loop to execute the code until the user presses a key? I have played around with ReadKey(true) as explained in a post I found on another site but it did not work the way suggested. Is there an easy way to do this or must a seperate thread be used and notified upon key press?
Loop until the user presses a keyHow run a loop until a key is pressed
Page 1 of 1
1 Replies - 1824 Views - Last Post: 17 November 2009 - 02:51 PM
Replies To: Loop until the user presses a key
#2
Re: Loop until the user presses a key
Posted 17 November 2009 - 02:51 PM
First off, welcome. Here at Dream in Code we like to see an effort on your part.

and we will be glad to help you.
and we will be glad to help you.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|