c# - How to Disable the Ability to Type in a Console Application? -


this question has answer here:

i'm attempting make snake clone in vb2015 using console template. i'm wondering if can disable ability type can finish it. thank you.

taken hans passant's answer here:

while (!done) {     while (console.keyavailable) console.readkey(true);     consolekeyinfo key = console.readkey(true);     // etc.. } 

Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -