Click here to Skip to main content
15,889,826 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionFramework and Flatform? Pin
hkim_zoro5-Jul-09 17:48
hkim_zoro5-Jul-09 17:48 
AnswerRe: Framework and Flatform? Pin
Colin Angus Mackay6-Jul-09 1:58
Colin Angus Mackay6-Jul-09 1:58 
GeneralRe: Framework and Flatform? Pin
hkim_zoro7-Jul-09 16:23
hkim_zoro7-Jul-09 16:23 
QuestionBest practice for updating UI in multi-threaded app Pin
bobishkindaguy5-Jul-09 13:55
bobishkindaguy5-Jul-09 13:55 
AnswerRe: Best practice for updating UI in multi-threaded app Pin
Gideon Engelberth5-Jul-09 16:03
Gideon Engelberth5-Jul-09 16:03 
AnswerRe: Best practice for updating UI in multi-threaded app Pin
supercat96-Jul-09 13:13
supercat96-Jul-09 13:13 
QuestionRe: Best practice for updating UI in multi-threaded app Pin
bobishkindaguy6-Jul-09 13:32
bobishkindaguy6-Jul-09 13:32 
AnswerRe: Best practice for updating UI in multi-threaded app Pin
supercat97-Jul-09 5:27
supercat97-Jul-09 5:27 
If you use "Invoke" rather than BeginInvoke, there's no need to avoid queueing up lots of messages, because Invoke will wait until the UI-thread action actually occurs. I generally avoid doing that, though, because there's no guarantee of a timely response from the UI thread. In some situations, it will be necessary for the main thread to wait for the UI thread, but in many cases it would be better for the main thread not to do so.

I never do anything to controls outside of the UI thread. Having to Invalidate and Update them and then have the control.Paint event redraw them is annoying, but seems to be the best approach (if you just Invalidate, the control will get redrawn the next time the UI thread is idle; Update will force an immediate redraw of those parts of the control that have been Invalidated).

BTW, I'm not sure but I believe under the .Net run-time, an Invoke on a control will wait until all pending BeginInvoke operations for the UI thread (not just the control) have completed. That will avoid any surprises in sequencing, but could potentially cause the non-UI thread to wait for awhile. If any of the BeginInvoke'd operations have to wait for anything to complete in the thread that called Invoke, deadlock could occur.
QuestionRe: Best practice for updating UI in multi-threaded app Pin
bobishkindaguy8-Jul-09 12:51
bobishkindaguy8-Jul-09 12:51 
AnswerRe: Best practice for updating UI in multi-threaded app Pin
supercat98-Jul-09 13:01
supercat98-Jul-09 13:01 
QuestionHow to get http request?? Pin
david bagaturia5-Jul-09 9:21
david bagaturia5-Jul-09 9:21 
AnswerRe: How to get http request?? Pin
Mark Salsbery6-Jul-09 10:05
Mark Salsbery6-Jul-09 10:05 
GeneralRe: How to get http request?? Pin
david bagaturia6-Jul-09 10:35
david bagaturia6-Jul-09 10:35 
GeneralRe: How to get http request?? Pin
0x3c06-Jul-09 10:41
0x3c06-Jul-09 10:41 
QuestionTroy's looking Pin
Troy Russell5-Jul-09 6:28
Troy Russell5-Jul-09 6:28 
QuestionHelp needed in decryption with TripleDes method Pin
ChiSmile5-Jul-09 2:47
ChiSmile5-Jul-09 2:47 
AnswerRe: Help needed in decryption with TripleDes method Pin
Alan N5-Jul-09 3:24
Alan N5-Jul-09 3:24 
GeneralRe: Help needed in decryption with TripleDes method Pin
ChiSmile5-Jul-09 4:58
ChiSmile5-Jul-09 4:58 
GeneralRe: Help needed in decryption with TripleDes method Pin
Henry Minute5-Jul-09 5:53
Henry Minute5-Jul-09 5:53 
GeneralRe: Help needed in decryption with TripleDes method Pin
ChiSmile5-Jul-09 15:08
ChiSmile5-Jul-09 15:08 
QuestionHow to Display ads on .Net form? Pin
slimtugo4-Jul-09 23:50
slimtugo4-Jul-09 23:50 
AnswerRe: How to Display ads on .Net form? Pin
Eddy Vluggen4-Jul-09 23:58
professionalEddy Vluggen4-Jul-09 23:58 
QuestionRe: How to Display ads on .Net form? Pin
slimtugo7-Jul-09 8:01
slimtugo7-Jul-09 8:01 
AnswerRe: How to Display ads on .Net form? Pin
Eddy Vluggen7-Jul-09 8:29
professionalEddy Vluggen7-Jul-09 8:29 
GeneralRe: How to Display ads on .Net form? Pin
slimtugo12-Jul-09 20:42
slimtugo12-Jul-09 20:42 

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.