Click here to Skip to main content
15,925,528 members
Home / Discussions / C#
   

C#

 
AnswerRe: Question on threads Pin
Nicholas Butler27-Sep-08 23:34
sitebuilderNicholas Butler27-Sep-08 23:34 
GeneralRe: Question on threads Pin
Dewald28-Sep-08 0:32
Dewald28-Sep-08 0:32 
GeneralRe: Question on threads Pin
Nicholas Butler28-Sep-08 1:34
sitebuilderNicholas Butler28-Sep-08 1:34 
GeneralRe: Question on threads Pin
Dewald28-Sep-08 3:57
Dewald28-Sep-08 3:57 
GeneralRe: Question on threads Pin
N a v a n e e t h28-Sep-08 8:01
N a v a n e e t h28-Sep-08 8:01 
GeneralRe: Question on threads Pin
Dewald28-Sep-08 10:15
Dewald28-Sep-08 10:15 
GeneralRe: Question on threads Pin
N a v a n e e t h28-Sep-08 17:17
N a v a n e e t h28-Sep-08 17:17 
GeneralRe: Question on threads Pin
Nicholas Butler29-Sep-08 0:41
sitebuilderNicholas Butler29-Sep-08 0:41 
Sounds like you're making progress Smile | :)

You should use Invoke not BeginInvoke in AddPicture if you're using a thread. Otherwise, the thread will not block and will loop round adding all the images without waiting for each image to be added.

For the interrupt method, just call CancelAsync once, and then handle the RunWorkerCompleted event.

Nick

----------------------------------
Be excellent to each other Smile | :)

GeneralRe: Question on threads Pin
Dewald29-Sep-08 1:08
Dewald29-Sep-08 1:08 
QuestionBianrySearch for IList<t></t> Pin
peterchen27-Sep-08 20:55
peterchen27-Sep-08 20:55 
AnswerRe: BianrySearch for IList Pin
N a v a n e e t h28-Sep-08 8:18
N a v a n e e t h28-Sep-08 8:18 
AnswerRe: BianrySearch for IList Pin
Lutosław28-Sep-08 11:44
Lutosław28-Sep-08 11:44 
QuestionProblem in showing exact data on reports(reguarding datetimepicker)??????? Pin
g_amol27-Sep-08 19:14
g_amol27-Sep-08 19:14 
Questionrelated path Pin
ahmed mega27-Sep-08 7:40
ahmed mega27-Sep-08 7:40 
AnswerRe: related path Pin
Pedram Behroozi27-Sep-08 8:19
Pedram Behroozi27-Sep-08 8:19 
QuestionPinvoke Pin
Miss_hacker27-Sep-08 3:08
Miss_hacker27-Sep-08 3:08 
AnswerRe: Pinvoke Pin
Giorgi Dalakishvili27-Sep-08 4:37
mentorGiorgi Dalakishvili27-Sep-08 4:37 
GeneralRe: Pinvoke Pin
Miss_hacker27-Sep-08 6:55
Miss_hacker27-Sep-08 6:55 
GeneralRe: Pinvoke Pin
DaveyM6927-Sep-08 7:15
professionalDaveyM6927-Sep-08 7:15 
GeneralRe: Pinvoke Pin
Paul Conrad27-Sep-08 7:20
professionalPaul Conrad27-Sep-08 7:20 
AnswerRe: Pinvoke Pin
J4amieC27-Sep-08 8:41
J4amieC27-Sep-08 8:41 
QuestionObfusicating Strings cause program to crash. Pin
Buckleyindahouse27-Sep-08 1:26
Buckleyindahouse27-Sep-08 1:26 
AnswerRe: Obfusicating Strings cause program to crash. Pin
#realJSOP27-Sep-08 2:34
professional#realJSOP27-Sep-08 2:34 
AnswerRe: Obfusicating Strings cause program to crash. Pin
Paul Conrad27-Sep-08 4:59
professionalPaul Conrad27-Sep-08 4:59 
Questionrotate whole shape using c# Pin
Muralikumar7627-Sep-08 0:53
Muralikumar7627-Sep-08 0:53 

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.