In C#, what methods take the place of the old kbhit and getch functions in C? (I'm writing a console application in Visual Studio.)

Recommended Answers

All 3 Replies

An actual GUI.

>>An actual GUI.??
You have :
Console.Read();
Console.ReadLine();
Console.ReadKey();

to choose from.
Look up their use in help or MSDN

while (Console.KeyAvailable == false) ...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.