Click here to Skip to main content
15,897,360 members
Home / Discussions / C#
   

C#

 
GeneralRe: License Key Generation Pin
#realJSOP17-Jul-08 3:14
professional#realJSOP17-Jul-08 3:14 
AnswerRe: License Key Generation Tool Pin
RWBitters27-Nov-09 15:11
RWBitters27-Nov-09 15:11 
QuestionDatabase retrieving problem Pin
Nishad8517-Sep-07 18:12
Nishad8517-Sep-07 18:12 
QuestionProblem with SQL Update using Variables in C# [modified] Pin
ba1959nh17-Sep-07 16:29
ba1959nh17-Sep-07 16:29 
AnswerRe: Problem with SQL Update using Variables in C# Pin
PIEBALDconsult17-Sep-07 18:34
mvePIEBALDconsult17-Sep-07 18:34 
AnswerRe: Problem with SQL Update using Variables in C# Pin
ba1959nh18-Sep-07 2:58
ba1959nh18-Sep-07 2:58 
GeneralRe: Problem with SQL Update using Variables in C# Pin
PIEBALDconsult18-Sep-07 5:03
mvePIEBALDconsult18-Sep-07 5:03 
QuestionQuestion on checkedlistbox if statement Pin
falles0117-Sep-07 15:27
falles0117-Sep-07 15:27 
QuestionLogon with UserName and Password Pin
T4AMD17-Sep-07 12:15
T4AMD17-Sep-07 12:15 
AnswerRe: Logon with UserName and Password Pin
ChrisKo17-Sep-07 12:33
ChrisKo17-Sep-07 12:33 
QuestionRe: Logon with UserName and Password Pin
T4AMD17-Sep-07 12:42
T4AMD17-Sep-07 12:42 
AnswerRe: Logon with UserName and Password Pin
ChrisKo17-Sep-07 12:50
ChrisKo17-Sep-07 12:50 
AnswerRe: Logon with UserName and Password Pin
PIEBALDconsult17-Sep-07 14:01
mvePIEBALDconsult17-Sep-07 14:01 
QuestionConsole application keypress Pin
ballzinator17-Sep-07 11:50
ballzinator17-Sep-07 11:50 
AnswerRe: Console application keypress Pin
ChrisKo17-Sep-07 12:27
ChrisKo17-Sep-07 12:27 
GeneralRe: Console application keypress Pin
ballzinator18-Sep-07 3:27
ballzinator18-Sep-07 3:27 
GeneralRe: Console application keypress Pin
Big Daddy Farang18-Sep-07 8:22
Big Daddy Farang18-Sep-07 8:22 
That makes it a little tougher. Which version of .NET are you using? The Console.ReadKey() that Chris suggested is not available until 3.0, unfortunately.

Seems to me that you'll want to make frequent checks for "escape key pressed" within your infinite loop. Some pseudo-code:
while (true)
{
  flag = false
  get next file
  open file
  while (not flag)
  {
    read line from file
    if eof
      flag = true
    else
    {
      process data from file
      if escape key pressed
        flag = true
    }
  }
  close file
  if flag
    exit program
}

The big problem remaining is how to determine if the escape key has been pressed. If you're using 3.0 then Console.ReadKey() should do it. If not, well does it have to be the escape key? The enter key would a lot easier to detect: Console.ReadLine().

BDF
Questionwhat is better c# or vb.net ?? Pin
sofy200817-Sep-07 11:49
sofy200817-Sep-07 11:49 
AnswerRe: what is better c# or vb.net ?? Pin
Matthew Cuba17-Sep-07 12:42
Matthew Cuba17-Sep-07 12:42 
AnswerRe: what is better c# or vb.net ?? Pin
Patrick Etc.17-Sep-07 13:33
Patrick Etc.17-Sep-07 13:33 
GeneralRe: what is better c# or vb.net ?? Pin
PIEBALDconsult17-Sep-07 13:58
mvePIEBALDconsult17-Sep-07 13:58 
GeneralRe: what is better c# or vb.net ?? Pin
Luc Pattyn17-Sep-07 14:41
sitebuilderLuc Pattyn17-Sep-07 14:41 
AnswerRe: what is better c# or vb.net ?? Pin
BoneSoft17-Sep-07 17:50
BoneSoft17-Sep-07 17:50 
GeneralRe: what is better c# or vb.net ?? Pin
Big Daddy Farang18-Sep-07 8:30
Big Daddy Farang18-Sep-07 8:30 
GeneralRe: what is better c# or vb.net ?? Pin
BoneSoft18-Sep-07 8:51
BoneSoft18-Sep-07 8:51 

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.