Click here to Skip to main content
15,914,070 members
Home / Discussions / C#
   

C#

 
Question[Message Deleted] Pin
RINSON VARGHESE21-Oct-09 2:39
RINSON VARGHESE21-Oct-09 2:39 
AnswerRe: advantages of c# Pin
Richard MacCutchan21-Oct-09 2:41
mveRichard MacCutchan21-Oct-09 2:41 
GeneralRe: advantages of c# Pin
musefan21-Oct-09 2:47
musefan21-Oct-09 2:47 
QuestionREF AND OUT VARIABLES Pin
RINSON VARGHESE21-Oct-09 2:10
RINSON VARGHESE21-Oct-09 2:10 
AnswerRe: REF AND OUT VARIABLES Pin
Luc Pattyn21-Oct-09 2:17
sitebuilderLuc Pattyn21-Oct-09 2:17 
AnswerRe: REF AND OUT VARIABLES [modified] Pin
musefan21-Oct-09 2:43
musefan21-Oct-09 2:43 
GeneralRe: REF AND OUT VARIABLES Pin
Luc Pattyn21-Oct-09 4:16
sitebuilderLuc Pattyn21-Oct-09 4:16 
AnswerRe: REF AND OUT VARIABLES Pin
Ghydo21-Oct-09 2:47
Ghydo21-Oct-09 2:47 
GeneralRe: REF AND OUT VARIABLES Pin
Ghydo21-Oct-09 2:53
Ghydo21-Oct-09 2:53 
GeneralRe: REF AND OUT VARIABLES Pin
musefan21-Oct-09 2:55
musefan21-Oct-09 2:55 
GeneralRe: REF AND OUT VARIABLES Pin
Ghydo21-Oct-09 3:04
Ghydo21-Oct-09 3:04 
GeneralRe: REF AND OUT VARIABLES Pin
musefan21-Oct-09 3:08
musefan21-Oct-09 3:08 
GeneralRe: REF AND OUT VARIABLES Pin
Saksida Bojan21-Oct-09 6:12
Saksida Bojan21-Oct-09 6:12 
GeneralRe: REF AND OUT VARIABLES Pin
Luc Pattyn21-Oct-09 4:12
sitebuilderLuc Pattyn21-Oct-09 4:12 
Question.NET SerialPort Pin
hairy_hats21-Oct-09 1:54
hairy_hats21-Oct-09 1:54 
AnswerRe: .NET SerialPort Pin
Luc Pattyn21-Oct-09 2:22
sitebuilderLuc Pattyn21-Oct-09 2:22 
GeneralRe: .NET SerialPort Pin
hairy_hats21-Oct-09 2:55
hairy_hats21-Oct-09 2:55 
GeneralRe: .NET SerialPort Pin
Luc Pattyn21-Oct-09 3:50
sitebuilderLuc Pattyn21-Oct-09 3:50 
QuestionTimer and closing console Pin
abbd21-Oct-09 1:52
abbd21-Oct-09 1:52 
AnswerRe: Timer and closing console Pin
Alan N21-Oct-09 2:00
Alan N21-Oct-09 2:00 
GeneralRe: Timer and closing console Pin
abbd21-Oct-09 2:07
abbd21-Oct-09 2:07 
GeneralRe: Timer and closing console Pin
J4amieC21-Oct-09 2:17
J4amieC21-Oct-09 2:17 
GeneralRe: Timer and closing console Pin
abbd21-Oct-09 2:20
abbd21-Oct-09 2:20 
GeneralRe: Timer and closing console Pin
Mirko198021-Oct-09 2:36
Mirko198021-Oct-09 2:36 
GeneralRe: Timer and closing console Pin
Alan N21-Oct-09 2:21
Alan N21-Oct-09 2:21 
Hi,
As written the main method will return and the application will terminate after the call to timer1.Start(). What is required is some form of wait and a simple and common way of doing this in console apps is to insert a call to Console.ReadLine()

timer1.Start();
Console.Readline();


Now the application will not terminate until the user presses the enter key.

Alan.

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.