Yes by using the Timer Class. Please direct your attention to:
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemthreadingtimerclasstopic.asp
1. Display the Console.ReadLine on the console.
2.. Set the time you want the Console.ReadLine accessible on the console
3. After the time you set expires, Console.WriteLine alternative
instructions
4. Continue or close the app.
Thanks,
j
--------------------
Thread-Topic: Console.ReadLine timeout
thread-index: AcZpALctCfMVi70jSxW7YF+g3MC2qQ==
X-WBNR-Posting-Host: 213.66.27.194
From: =?Utf-8?B?Sm9hY2hpbQ==?= <Jo*****@discussions.microsoft.com>
Subject: Console.ReadLine timeout
Date: Wed, 26 Apr 2006 00:12:02 -0700
Lines: 1
Message-ID: <12**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
Newsgroups: microsoft.public.dotnet.languages.csharp
Path: TK2MSFTNGXA01.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.languages.csharp:400575
NNTP-Posting-Host: TK2MSFTNGXA01.phx.gbl 10.40.2.250
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
Is there a way to set a timeout for the Console.ReadLine method?
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl {\f0\fnil\fprq2\fcharset0
MS Sans Serif;}{\f1\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\f0\fs20 Cheers,\par
\par
johnKn [MS-SDK]\par
\par
\par
\par
-Please do not send email directly to this alias. This alias is for \par
newsgroup purposes only\par
\par
-This posting is provided "AS IS" with no warranties, and confers no
rights.\par
\par
-To provide additional feedback about your community experience please send
\par
e-mail to:
sd*****@microsoft.com\par
\f1\par
}