Click here to Skip to main content
15,889,116 members
Home / Discussions / C#
   

C#

 
QuestionLabel text alignment Pin
RussBus7-Aug-07 6:34
RussBus7-Aug-07 6:34 
AnswerRe: Label text alignment Pin
Luc Pattyn7-Aug-07 6:39
sitebuilderLuc Pattyn7-Aug-07 6:39 
GeneralRe: Label text alignment Pin
RussBus7-Aug-07 9:38
RussBus7-Aug-07 9:38 
QuestionDjango type database access Pin
eggie57-Aug-07 5:58
eggie57-Aug-07 5:58 
AnswerRe: Django type database access Pin
originSH7-Aug-07 6:08
originSH7-Aug-07 6:08 
AnswerRe: Django type database access Pin
Judah Gabriel Himango7-Aug-07 9:11
sponsorJudah Gabriel Himango7-Aug-07 9:11 
QuestionMulti Threading / Invoke Pin
Peterixina7-Aug-07 5:47
Peterixina7-Aug-07 5:47 
AnswerRe: Multi Threading / Invoke Pin
Judah Gabriel Himango7-Aug-07 6:39
sponsorJudah Gabriel Himango7-Aug-07 6:39 
Best way to do this is have your main thread watch a queue of functions, e.g. delegates to execute. When your background thread needs to have a function execute on the main thread, enqueue that function into the main thread queue of pending actions. When a new function is enqueued, have the main thread execute it.

This is essentially how calling control.Invoke and .BeginInvoke works in WindowsForms: you're essentially posting a message to the UI thread message queue, telling it to execute some delegate.


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Minnesota bridge collapses
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


Questionwebsite code generator Pin
Richard Blythe7-Aug-07 4:20
Richard Blythe7-Aug-07 4:20 
AnswerRe: website code generator Pin
leppie7-Aug-07 5:07
leppie7-Aug-07 5:07 
AnswerRe: website code generator Pin
tker7-Aug-07 20:26
tker7-Aug-07 20:26 
GeneralRe: website code generator Pin
Richard Blythe8-Aug-07 5:28
Richard Blythe8-Aug-07 5:28 
Questiontype converting Pin
M.V7-Aug-07 3:57
M.V7-Aug-07 3:57 
AnswerRe: type converting Pin
PhilDanger7-Aug-07 4:05
PhilDanger7-Aug-07 4:05 
AnswerRe: type converting Pin
ednrgc7-Aug-07 4:07
ednrgc7-Aug-07 4:07 
AnswerRe: type converting Pin
il_masacratore7-Aug-07 4:07
il_masacratore7-Aug-07 4:07 
AnswerRe: type converting Pin
lsconyer7-Aug-07 4:26
lsconyer7-Aug-07 4:26 
GeneralRe: type converting Pin
leppie7-Aug-07 5:08
leppie7-Aug-07 5:08 
GeneralRe: type converting Pin
Judah Gabriel Himango7-Aug-07 5:14
sponsorJudah Gabriel Himango7-Aug-07 5:14 
GeneralRe: type converting Pin
Luc Pattyn7-Aug-07 5:51
sitebuilderLuc Pattyn7-Aug-07 5:51 
GeneralRe: type converting Pin
lsconyer7-Aug-07 6:48
lsconyer7-Aug-07 6:48 
GeneralRe: type converting Pin
Luc Pattyn7-Aug-07 7:51
sitebuilderLuc Pattyn7-Aug-07 7:51 
GeneralRe: type converting Pin
Judah Gabriel Himango7-Aug-07 9:01
sponsorJudah Gabriel Himango7-Aug-07 9:01 
AnswerRe: type converting Pin
tker7-Aug-07 20:35
tker7-Aug-07 20:35 
Questionhow to pass optional parameter in function Pin
imranafsari7-Aug-07 3:33
imranafsari7-Aug-07 3:33 

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.