Click here to Skip to main content
15,880,392 members
Home / Discussions / C#
   

C#

 
GeneralRe: DirectoryNotFoundException when directory does exist Pin
sergestusxx19-Apr-06 9:29
sergestusxx19-Apr-06 9:29 
QuestionRegarding WEB TV Pin
veerasekar Muthiah19-Apr-06 0:27
veerasekar Muthiah19-Apr-06 0:27 
AnswerRe: Regarding WEB TV Pin
LongRange.Shooter19-Apr-06 4:13
LongRange.Shooter19-Apr-06 4:13 
QuestionWindows Form Datagrid ? Pin
Gammaza19-Apr-06 0:24
Gammaza19-Apr-06 0:24 
QuestionSystem.Nullable(of Short) - How do I pass Null ... Pin
MaWeRic19-Apr-06 0:06
MaWeRic19-Apr-06 0:06 
AnswerRe: System.Nullable(of Short) - How do I pass Null ... Pin
Jon Hulatt19-Apr-06 0:35
Jon Hulatt19-Apr-06 0:35 
Questionproblem with visio shape object. Can't acces 'Class' class name, fields etc. Pin
crazymubashir19-Apr-06 0:04
crazymubashir19-Apr-06 0:04 
Questionstopping a thread Pin
naglbitur18-Apr-06 23:44
naglbitur18-Apr-06 23:44 
Hi.
I am experimenting with threading and I made the following simple program:
Thread blue = new Thread(new ThreadStart(bluebegin) );
Thread yellow = new Thread(new ThreadStart(yellowbegin) );
Thread red = new Thread(new ThreadStart(redbegin) );
blue.Start();
yellow.Start();
red.Start();
....
....
public void bluebegin()
{
this.BackColor = Color.Blue;
Thread.Sleep(2000);
yellowbegin();
}
public void yellowbegin()
{
this.BackColor = Color.Yellow;
Thread.Sleep(500);
redbegin();
}
public void redbegin()
{
this.BackColor = Color.Red;
Thread.Sleep(3000);
bluebegin();

}
I don´t know how to stop one or all threads. I have tried adding to one of the methods : blue.Abort(); but then I am told that the namespace blue could not be found. Can someone please help me?
Thanks,

F
AnswerRe: stopping a thread Pin
Gammaza19-Apr-06 0:12
Gammaza19-Apr-06 0:12 
AnswerRe: stopping a thread Pin
LongRange.Shooter19-Apr-06 4:10
LongRange.Shooter19-Apr-06 4:10 
QuestionDynamic Value from an Object Pin
723718-Apr-06 23:39
723718-Apr-06 23:39 
AnswerRe: Dynamic Value from an Object Pin
J4amieC18-Apr-06 23:50
J4amieC18-Apr-06 23:50 
GeneralRe: Dynamic Value from an Object Pin
723719-Apr-06 0:05
723719-Apr-06 0:05 
GeneralRe: Dynamic Value from an Object Pin
J4amieC19-Apr-06 0:36
J4amieC19-Apr-06 0:36 
GeneralRe: Dynamic Value from an Object Pin
723719-Apr-06 16:03
723719-Apr-06 16:03 
Question[Message Deleted] Pin
HariKreddy18-Apr-06 23:33
HariKreddy18-Apr-06 23:33 
AnswerRe: browser compatibility Pin
alexey N19-Apr-06 0:00
alexey N19-Apr-06 0:00 
AnswerRe: browser compatibility Pin
CWIZO19-Apr-06 1:54
CWIZO19-Apr-06 1:54 
QuestionNUnit with VSTS Pin
deeps2618-Apr-06 22:48
deeps2618-Apr-06 22:48 
Questionsimple client/server Pin
Bekham18-Apr-06 22:17
Bekham18-Apr-06 22:17 
AnswerRe: simple client/server Pin
Mike Dimmick19-Apr-06 1:12
Mike Dimmick19-Apr-06 1:12 
QuestionCreate updates of my Setup project… Pin
anderslundsgard18-Apr-06 22:09
anderslundsgard18-Apr-06 22:09 
AnswerRe: Create updates of my Setup project… Pin
Aaron Dilliard19-Apr-06 3:57
Aaron Dilliard19-Apr-06 3:57 
GeneralRe: Create updates of my Setup project… Pin
anderslundsgard19-Apr-06 21:42
anderslundsgard19-Apr-06 21:42 
Questioncan't Connect to Mysql 10048 Pin
abhinish18-Apr-06 21:52
abhinish18-Apr-06 21:52 

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.