Click here to Skip to main content
15,898,597 members
Home / Discussions / C#
   

C#

 
GeneralRe: multi-threading in c# Pin
Luc Pattyn1-Feb-10 2:52
sitebuilderLuc Pattyn1-Feb-10 2:52 
GeneralRe: multi-threading in c# Pin
lord_laurent_r1-Feb-10 5:01
lord_laurent_r1-Feb-10 5:01 
QuestionControl derived from Listbox not drawing properly Pin
Russell Jones28-Jan-10 6:19
Russell Jones28-Jan-10 6:19 
AnswerRe: Control derived from Listbox not drawing properly Pin
Saksida Bojan28-Jan-10 7:54
Saksida Bojan28-Jan-10 7:54 
GeneralRe: Control derived from Listbox not drawing properly Pin
Russell Jones28-Jan-10 8:23
Russell Jones28-Jan-10 8:23 
GeneralRe: Control derived from Listbox not drawing properly Pin
Saksida Bojan28-Jan-10 8:28
Saksida Bojan28-Jan-10 8:28 
QuestionHow to handle Enter key... Pin
mukundkallapur28-Jan-10 5:33
mukundkallapur28-Jan-10 5:33 
AnswerRe: How to handle Enter key... Pin
OriginalGriff28-Jan-10 5:43
mveOriginalGriff28-Jan-10 5:43 
Yes it will.
I assume you have something along the lines of:
do
   {
   Console.WriteLine(...
   ...
   s = Console.ReadLine();
   } while (s != "9")

If so, then it will loop round for any sequence of keypresses follewed by an ENTER other than the '9' key followed by ENTER.
Remember that ReadLine will retrun with what has been pressed up to an ENTER - so if you only press enter, you will get and empty string. You will have to check for this and act accordingly.

Sorry if this sound vague, but your code fragment doesn't give us a lot to go on!

All those who believe in psycho kinesis, raise my hand.

My Badger | [badger,badger,badger,badger...] 's gonna unleash hell on your ass. Badger | [badger,badger,badger,badger...] tastic!

AnswerRe: How to handle Enter key... Pin
Alex Manolescu28-Jan-10 8:16
Alex Manolescu28-Jan-10 8:16 
QuestionGetting info from database in gridview Pin
Bizcrack28-Jan-10 4:03
Bizcrack28-Jan-10 4:03 
AnswerRe: Getting info from database in gridview Pin
loyal ginger28-Jan-10 4:14
loyal ginger28-Jan-10 4:14 
AnswerRe: Getting info from database in gridview Pin
kevinnicol28-Jan-10 4:42
kevinnicol28-Jan-10 4:42 
GeneralRe: Getting info from database in gridview Pin
OriginalGriff28-Jan-10 5:12
mveOriginalGriff28-Jan-10 5:12 
GeneralRe: Getting info from database in gridview Pin
dan!sh 28-Jan-10 5:48
professional dan!sh 28-Jan-10 5:48 
AnswerRe: Getting info from database in gridview Pin
dan!sh 28-Jan-10 5:46
professional dan!sh 28-Jan-10 5:46 
GeneralRe: Getting info from database in gridview Pin
Bizcrack28-Jan-10 8:51
Bizcrack28-Jan-10 8:51 
AnswerRe: Getting info from database in gridview Pin
Mycroft Holmes28-Jan-10 12:18
professionalMycroft Holmes28-Jan-10 12:18 
AnswerRe: Getting info from database in gridview Pin
yokzie29-Jan-10 20:13
yokzie29-Jan-10 20:13 
Questionaccess database and c# form-adding data Pin
johnnysmith128-Jan-10 2:15
johnnysmith128-Jan-10 2:15 
AnswerRe: access database and c# form-adding data Pin
EliottA28-Jan-10 2:44
EliottA28-Jan-10 2:44 
GeneralRe: access database and c# form-adding data Pin
johnnysmith128-Jan-10 2:57
johnnysmith128-Jan-10 2:57 
QuestionMessage Removed Pin
28-Jan-10 1:08
nercan28-Jan-10 1:08 
AnswerRe: .NET Remoting Customization Made Easy: Custom Sinks Problem Pin
OriginalGriff28-Jan-10 1:35
mveOriginalGriff28-Jan-10 1:35 
QuestionForm issue. Pin
spankyleo12328-Jan-10 0:27
spankyleo12328-Jan-10 0:27 
AnswerRe: Form issue. Pin
OriginalGriff28-Jan-10 0:57
mveOriginalGriff28-Jan-10 0:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.