Click here to Skip to main content
15,891,204 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I create a label thats display the time like a digital clock ? Pin
PIEBALDconsult2-Aug-08 20:46
mvePIEBALDconsult2-Aug-08 20:46 
JokeRe: How do I create a label thats display the time like a digital clock ? Pin
MarkB7772-Aug-08 22:06
MarkB7772-Aug-08 22:06 
GeneralRe: How do I create a label thats display the time like a digital clock ? Pin
PIEBALDconsult3-Aug-08 3:55
mvePIEBALDconsult3-Aug-08 3:55 
AnswerRe: How do I create a label thats display the time like a digital clock ? Pin
Lim Yuxuan2-Aug-08 21:35
Lim Yuxuan2-Aug-08 21:35 
GeneralRe: How do I create a label thats display the time like a digital clock ? Pin
PIEBALDconsult3-Aug-08 5:39
mvePIEBALDconsult3-Aug-08 5:39 
AnswerRe: How do I create a label thats display the time like a digital clock ? Pin
nelsonpaixao3-Aug-08 14:51
nelsonpaixao3-Aug-08 14:51 
QuestionDataset Posistion change Pin
kindman_nb2-Aug-08 9:01
kindman_nb2-Aug-08 9:01 
AnswerRe: Dataset Posistion change Pin
Paul Conrad2-Aug-08 10:28
professionalPaul Conrad2-Aug-08 10:28 
QuestionVS 2005 Server Explorer [modified] Pin
benjamin yap2-Aug-08 7:00
benjamin yap2-Aug-08 7:00 
AnswerRe: VS 2005 Server Explorer Pin
Paul Conrad2-Aug-08 8:15
professionalPaul Conrad2-Aug-08 8:15 
GeneralRe: VS 2005 Server Explorer Pin
benjamin yap2-Aug-08 8:19
benjamin yap2-Aug-08 8:19 
GeneralRe: VS 2005 Server Explorer Pin
Paul Conrad2-Aug-08 8:23
professionalPaul Conrad2-Aug-08 8:23 
GeneralRe: VS 2005 Server Explorer Pin
benjamin yap2-Aug-08 8:25
benjamin yap2-Aug-08 8:25 
GeneralRe: VS 2005 Server Explorer Pin
Paul Conrad2-Aug-08 9:38
professionalPaul Conrad2-Aug-08 9:38 
GeneralRe: VS 2005 Server Explorer Pin
benjamin yap2-Aug-08 19:44
benjamin yap2-Aug-08 19:44 
GeneralRe: VS 2005 Server Explorer Pin
Paul Conrad2-Aug-08 19:48
professionalPaul Conrad2-Aug-08 19:48 
GeneralRe: VS 2005 Server Explorer Pin
benjamin yap2-Aug-08 20:06
benjamin yap2-Aug-08 20:06 
GeneralRe: VS 2005 Server Explorer Pin
Paul Conrad2-Aug-08 20:11
professionalPaul Conrad2-Aug-08 20:11 
GeneralRe: VS 2005 Server Explorer [modified] Pin
benjamin yap2-Aug-08 20:25
benjamin yap2-Aug-08 20:25 
GeneralRe: VS 2005 Server Explorer Pin
Paul Conrad2-Aug-08 20:50
professionalPaul Conrad2-Aug-08 20:50 
GeneralRe: VS 2005 Server Explorer Pin
benjamin yap3-Aug-08 2:29
benjamin yap3-Aug-08 2:29 
QuestionThreading, just professionall please... Pin
mr.mohsen2-Aug-08 6:32
mr.mohsen2-Aug-08 6:32 
AnswerRe: Threading, just professionall please... Pin
Mark Salsbery2-Aug-08 7:30
Mark Salsbery2-Aug-08 7:30 
AnswerRe: Threading, just professionall please... Pin
User 66582-Aug-08 7:41
User 66582-Aug-08 7:41 
One way to gracefully terminate a thread is to set a volatile bool variable to some value and check this value inside the other thread, like this:

public void ButtonClickHandler(Object sender, EventArgs args)
{
   requestStopThread = true; // this is a volatile bool variable
}


Inside your thread you need to check if this variable will be set to true and then terminate the thread in a correct way:

while(!requestStopThread)
{
   // do some stuff, terminate otherwise
}


or

// do something
...

if(requestStopThread)
   // terminate

// do something
...



regards

modified 12-Sep-18 21:01pm.

QuestionDNS issue Pin
George_George2-Aug-08 3:45
George_George2-Aug-08 3:45 

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.