Click here to Skip to main content
15,879,326 members
Home / Discussions / C#
   

C#

 
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 
Use a ManualResetEvent.
public static System.Timers.Timer timer1;
private static System.Threading.ManualResetEvent mrEvent = new System.Threading.ManualResetEvent(false);

private static void OnTimedEvent(object source, ElapsedEventArgs e)
{
    Console.write("test");
    mrEvent.Set();
}

static void Main(string[] args)
{
    timer1 = new System.Timers.Timer();
    timer1.Elapsed += new ElapsedEventHandler(OnTimedEvent);

    timer1.Interval = 10000;
    timer1.Start();

    mrEvent.WaitOne();
}

GeneralRe: Timer and closing console Pin
Alan N21-Oct-09 2:21
Alan N21-Oct-09 2:21 
GeneralRe: Timer and closing console Pin
abbd21-Oct-09 2:31
abbd21-Oct-09 2:31 
AnswerRe: Timer and closing console Pin
Luc Pattyn21-Oct-09 2:25
sitebuilderLuc Pattyn21-Oct-09 2:25 
QuestionCheckedListBox how to catch a event. Pin
JollyMansArt21-Oct-09 1:30
JollyMansArt21-Oct-09 1:30 
AnswerRe: CheckedListBox how to catch a event. Pin
stancrm21-Oct-09 1:33
stancrm21-Oct-09 1:33 
GeneralRe: CheckedListBox how to catch a event. Pin
JollyMansArt21-Oct-09 2:54
JollyMansArt21-Oct-09 2:54 
Questionsocket programming Pin
3bood.ghzawi21-Oct-09 0:41
3bood.ghzawi21-Oct-09 0:41 
AnswerRe: socket programming Pin
Eddy Vluggen21-Oct-09 1:00
professionalEddy Vluggen21-Oct-09 1:00 
AnswerRe: socket programming Pin
HimanshuJoshi21-Oct-09 2:10
HimanshuJoshi21-Oct-09 2:10 
QuestionNavigating through records. Pin
Minotaur-Mortal21-Oct-09 0:21
Minotaur-Mortal21-Oct-09 0:21 
AnswerRe: Navigating through records. Pin
Eduard Keilholz21-Oct-09 1:39
Eduard Keilholz21-Oct-09 1:39 
GeneralRe: Navigating through records. Pin
Minotaur-Mortal21-Oct-09 1:48
Minotaur-Mortal21-Oct-09 1:48 
GeneralRe: Navigating through records. Pin
Minotaur-Mortal27-Oct-09 2:16
Minotaur-Mortal27-Oct-09 2:16 
Questioni want send output data into pdf fromate Pin
lavankumar20-Oct-09 23:57
lavankumar20-Oct-09 23:57 
AnswerRe: i want send output data into pdf fromate Pin
Christian Graus20-Oct-09 23:57
protectorChristian Graus20-Oct-09 23:57 
GeneralRe: i want send output data into pdf fromate Pin
V.21-Oct-09 0:20
professionalV.21-Oct-09 0:20 
AnswerRe: i want send output data into pdf fromate Pin
Tom Deketelaere21-Oct-09 0:08
professionalTom Deketelaere21-Oct-09 0:08 

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.