GIDForums  

Go Back   GIDForums > Computer Programming Forums > Miscellaneous Programming Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 08-Jan-2009, 18:10
BobLewiston BobLewiston is offline
Junior Member
 
Join Date: Nov 2008
Posts: 53
BobLewiston is on a distinguished road

C#, kbhit & getch


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.)
  #2  
Old 08-Jan-2009, 21:47
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,373
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all

Re: C#, kbhit & getch


Probably nothing since these functions are not officially part of C. They were enhancements to specific compilers to make their compilers more "interesting".
__________________

The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
  #3  
Old 09-Jan-2009, 07:52
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,309
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: C#, kbhit & getch


Quote:
Originally Posted by BobLewiston
...C#...kbhit and getch...console application in Visual Studio...


You can poke around the MotherShip (msdn) a little and read about the System.Console class:

Creating Console Applications (Visual C#)

Console.KeyAvailable Property

Console.ReadKey Method (Boolean)

Regards,

Dave
 
 

Recent GIDBlogInstall Adobe Flash - Without Administrator Rights by LocalTech

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to detect arrow keys? Shrid C Programming Language 10 14-Aug-2008 23:46
How does getch() work? KingSAT C Programming Language 2 12-Feb-2007 05:45
Urgent ! Pls Help Me ! mycashmoney C Programming Language 4 01-Jul-2006 22:49
How to interpret characters as they are being entered? nkhambal C Programming Language 18 14-Feb-2006 10:41
why two getch() ?? meet_raman C Programming Language 10 02-May-2004 17:14

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 04:06.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.