Click here to Skip to main content
15,922,139 members
Home / Discussions / C#
   

C#

 
QuestionRegistry Issues Pin
Lewis0126-Mar-09 5:31
Lewis0126-Mar-09 5:31 
AnswerRe: Registry Issues Pin
Mirko198026-Mar-09 5:40
Mirko198026-Mar-09 5:40 
QuestionScheduling tasks Pin
dwolver26-Mar-09 5:10
dwolver26-Mar-09 5:10 
AnswerRe: Scheduling tasks Pin
Yusuf26-Mar-09 5:52
Yusuf26-Mar-09 5:52 
AnswerRe: Scheduling tasks Pin
led mike26-Mar-09 6:10
led mike26-Mar-09 6:10 
AnswerRe: Scheduling tasks Pin
Henry Minute26-Mar-09 6:13
Henry Minute26-Mar-09 6:13 
QuestionThreading in C# with a Console Application Pin
agent00zelda26-Mar-09 4:58
agent00zelda26-Mar-09 4:58 
AnswerRe: Threading in C# with a Console Application Pin
Deresen26-Mar-09 6:00
Deresen26-Mar-09 6:00 
You can use the namespace System.Threading for this.
The same as you use threading in java, you can use it in C#.

class ThreadTest 
{
  static void Main() 
  {
    Thread t = new Thread (WriteY);
    t.Start();                          // Run WriteY on the new thread
    while (true) Console.Write ("x");   // Write 'x' forever  }
 
  static void WriteY() 
  {
    while (true) Console.Write ("y");   // Write 'y' forever
  }
}

To stop the thread, use t.Stop(); Or you can sleep inside the thread with Thread.Sleep(1000);//one second

Good luck
GeneralRe: Threading in C# with a Console Application Pin
agent00zelda26-Mar-09 6:55
agent00zelda26-Mar-09 6:55 
GeneralRe: Threading in C# with a Console Application Pin
S. Senthil Kumar27-Mar-09 7:12
S. Senthil Kumar27-Mar-09 7:12 
Questionhow to connect/query assisted gps server Pin
hammid198126-Mar-09 4:26
hammid198126-Mar-09 4:26 
QuestionHow to wait for process with redirected Output (asynchronous) end AND end of output stream WITH timeout for process? Pin
MayFlyJJ26-Mar-09 4:02
MayFlyJJ26-Mar-09 4:02 
AnswerRe: How to wait for process with redirected Output (asynchronous) end AND end of output stream WITH timeout for process? [modified] Pin
Luc Pattyn26-Mar-09 5:21
sitebuilderLuc Pattyn26-Mar-09 5:21 
GeneralRe: How to wait for process with redirected Output (asynchronous) end AND end of output stream WITH timeout for process? Pin
MayFlyJJ26-Mar-09 6:17
MayFlyJJ26-Mar-09 6:17 
GeneralRe: How to wait for process with redirected Output (asynchronous) end AND end of output stream WITH timeout for process? Pin
Luc Pattyn26-Mar-09 7:17
sitebuilderLuc Pattyn26-Mar-09 7:17 
GeneralRe: How to wait for process with redirected Output (asynchronous) end AND end of output stream WITH timeout for process? Pin
MayFlyJJ27-Mar-09 2:07
MayFlyJJ27-Mar-09 2:07 
GeneralRe: How to wait for process with redirected Output (asynchronous) end AND end of output stream WITH timeout for process? Pin
Luc Pattyn27-Mar-09 2:24
sitebuilderLuc Pattyn27-Mar-09 2:24 
QuestionDynamic Link Button not firing click event. Pin
Kevin Mauriello26-Mar-09 3:50
Kevin Mauriello26-Mar-09 3:50 
Questionchanging the database after addition to the project ? Pin
Mubeen.asim26-Mar-09 3:36
Mubeen.asim26-Mar-09 3:36 
AnswerRe: changing the database after addition to the project ? Pin
Vimalsoft(Pty) Ltd26-Mar-09 4:14
professionalVimalsoft(Pty) Ltd26-Mar-09 4:14 
GeneralRe: changing the database after addition to the project ? Pin
Mubeen.asim26-Mar-09 4:50
Mubeen.asim26-Mar-09 4:50 
GeneralRe: changing the database after addition to the project ? Pin
Vimalsoft(Pty) Ltd26-Mar-09 4:57
professionalVimalsoft(Pty) Ltd26-Mar-09 4:57 
GeneralRe: changing the database after addition to the project ? Pin
Mubeen.asim26-Mar-09 5:01
Mubeen.asim26-Mar-09 5:01 
GeneralRe: changing the database after addition to the project ? Pin
Vimalsoft(Pty) Ltd26-Mar-09 5:07
professionalVimalsoft(Pty) Ltd26-Mar-09 5:07 
GeneralRe: changing the database after addition to the project ? Pin
Mubeen.asim26-Mar-09 6:39
Mubeen.asim26-Mar-09 6:39 

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.