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

.NET (Core and Framework)

 
AnswerRe: Interop call in .Net exe fails when executing from Scheduled task Pin
Colin Angus Mackay6-Jul-09 1:57
Colin Angus Mackay6-Jul-09 1:57 
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 
Thanks to both Gideon and supercat9 for these thoughtful replies.

I've been doing this:

Delegate Sub WhateverModel(PassedIn as SomeType)
Private Sub Whatever (PassedIn as SomeType)
  If SayForExampleATextBox.InvokeRequired Then
    Dim ThisSub as WhateverModel (AddressOf Whatever)
    SayForExampleATextBox.Invoke (ThisSub, New Object() {PassedIn})
  Else
    'do whatever to any control in the same thread as SayForExampleATextBox
  End If
End Sub


So I'll be thinking about what you said, supercat9, to be absolutely sure that I don't build up a whole bunch of pending requests on the UI and block the app's processing of these. In fact I have noticed some flakiness that would fit that description.

(I get the idea, but if you have a code snippet to help me see more clearly how to implement this, (if you have time), that would be appreciated.)

Here's a related question which should be a no-brainer for you: My testing shows that doing things like setting checkboxes and radiobuttons checkstate, as well as ProgressBars, text in textboxes, etc, all require Invoke-ing. However, it seems that Invalidate() - RePaint does not. In fact, if I use the above strategy to do (only) a repaint, I get weird behaviour. So I'm not doing the repaint via the delegate. (In case you're wondering what needs repainting, it's a UI with many little "indicator lights" that get bright or dark based on activities on other threads. Because there are so many and their updates are so frequent, this whole issue has come to light.)
AnswerRe: Best practice for updating UI in multi-threaded app Pin
supercat97-Jul-09 5:27
supercat97-Jul-09 5:27 
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 

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.