Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Aera Glass Button in C# Pin
Igor120118-Jul-09 4:53
Igor120118-Jul-09 4:53 
AnswerRe: Aera Glass Button in C# Pin
Igor12015-Aug-09 18:12
Igor12015-Aug-09 18:12 
QuestionWorking with multiple forms Pin
SimpleData18-Jul-09 2:21
SimpleData18-Jul-09 2:21 
AnswerRe: Working with multiple forms Pin
Luc Pattyn18-Jul-09 3:07
sitebuilderLuc Pattyn18-Jul-09 3:07 
GeneralRe: Working with multiple forms Pin
SimpleData18-Jul-09 3:15
SimpleData18-Jul-09 3:15 
GeneralRe: Working with multiple forms Pin
Luc Pattyn18-Jul-09 3:27
sitebuilderLuc Pattyn18-Jul-09 3:27 
GeneralRe: Working with multiple forms Pin
SimpleData18-Jul-09 3:35
SimpleData18-Jul-09 3:35 
GeneralRe: Working with multiple forms Pin
Luc Pattyn18-Jul-09 3:53
sitebuilderLuc Pattyn18-Jul-09 3:53 
you don't need a destructor/finalizer to stop a thread.
Here is a pseudo-code example:

Thread thread;
bool cancel;

void start_Clicked() {
    cancel=false;
    thread==new Thread(...threadCode);
    thread.Start();
}

void stop_Clicked() {
    cancel=true;
}

void threadCode() {
    while(!cancel) {
        .. do something useful
    }
}


thas is cooperative thread control: the thread is doing some of the controlability work itself (the while test)

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Working with multiple forms Pin
SimpleData18-Jul-09 4:14
SimpleData18-Jul-09 4:14 
QuestionAccess Database in Remote Server from LAN Pin
vasanth arivali18-Jul-09 1:58
vasanth arivali18-Jul-09 1:58 
AnswerRe: Access Database in Remote Server from LAN Pin
dan!sh 18-Jul-09 3:08
professional dan!sh 18-Jul-09 3:08 
AnswerRe: Access Database in Remote Server from LAN Pin
Monjurul Habib5-Jun-11 7:36
professionalMonjurul Habib5-Jun-11 7:36 
QuestionGet full HTML-code Pin
Martijn Verbakel18-Jul-09 0:28
Martijn Verbakel18-Jul-09 0:28 
AnswerRe: Get full HTML-code Pin
Mycroft Holmes18-Jul-09 0:47
professionalMycroft Holmes18-Jul-09 0:47 
GeneralRe: Get full HTML-code Pin
Martijn Verbakel18-Jul-09 0:51
Martijn Verbakel18-Jul-09 0:51 
QuestionHow do i know in which drive the operating system is installed in a c# application? Pin
CoderForEver17-Jul-09 23:20
CoderForEver17-Jul-09 23:20 
AnswerRe: How do i know in which drive the operating system is installed in a c# application? Pin
Luc Pattyn17-Jul-09 23:50
sitebuilderLuc Pattyn17-Jul-09 23:50 
GeneralRe: How do i know in which drive the operating system is installed in a c# application? Pin
Baeltazor18-Jul-09 0:37
Baeltazor18-Jul-09 0:37 
GeneralRe: How do i know in which drive the operating system is installed in a c# application? Pin
Luc Pattyn18-Jul-09 0:39
sitebuilderLuc Pattyn18-Jul-09 0:39 
JokeRe: How do i know in which drive the operating system is installed in a c# application? Pin
Mycroft Holmes18-Jul-09 0:49
professionalMycroft Holmes18-Jul-09 0:49 
GeneralRe: How do i know in which drive the operating system is installed in a c# application? Pin
Luc Pattyn18-Jul-09 0:54
sitebuilderLuc Pattyn18-Jul-09 0:54 
GeneralRe: How do i know in which drive the operating system is installed in a c# application? Pin
CoderForEver18-Jul-09 18:30
CoderForEver18-Jul-09 18:30 
QuestionHow can i play a flash(.swf) file in a c# application? Pin
CoderForEver17-Jul-09 23:14
CoderForEver17-Jul-09 23:14 
AnswerRe: How can i play a flash(.swf) file in a c# application? Pin
Mycroft Holmes18-Jul-09 0:52
professionalMycroft Holmes18-Jul-09 0:52 
AnswerRe: How can i play a flash(.swf) file in a c# application? Pin
vasanth arivali20-Jul-09 19:15
vasanth arivali20-Jul-09 19:15 

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.