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

.NET (Core and Framework)

 
QuestionIntellisense help Pin
thenutz726-Jul-09 10:22
thenutz726-Jul-09 10:22 
AnswerRe: Intellisense help Pin
Luc Pattyn6-Jul-09 11:45
sitebuilderLuc Pattyn6-Jul-09 11:45 
GeneralRe: Intellisense help Pin
thenutz726-Jul-09 12:18
thenutz726-Jul-09 12:18 
GeneralRe: Intellisense help Pin
Luc Pattyn6-Jul-09 12:27
sitebuilderLuc Pattyn6-Jul-09 12:27 
AnswerRe: Intellisense help Pin
cateyes996-Jul-09 15:48
cateyes996-Jul-09 15:48 
QuestionWinInet class wrapper? Pin
NetDave6-Jul-09 7:57
NetDave6-Jul-09 7:57 
QuestionWebservices & Reflection & Request types. Pin
Mr Jen Withers6-Jul-09 4:45
Mr Jen Withers6-Jul-09 4:45 
Questionbios date time [modified] Pin
vishal lele6-Jul-09 1:47
vishal lele6-Jul-09 1:47 
AnswerRe: bios date time Pin
Colin Angus Mackay6-Jul-09 1:55
Colin Angus Mackay6-Jul-09 1:55 
AnswerRe: bios date time Pin
Colin Angus Mackay6-Jul-09 2:12
Colin Angus Mackay6-Jul-09 2:12 
AnswerRe: bios date time Pin
Eddy Vluggen6-Jul-09 3:15
professionalEddy Vluggen6-Jul-09 3:15 
QuestionInterop call in .Net exe fails when executing from Scheduled task Pin
Hariharan.T5-Jul-09 23:22
Hariharan.T5-Jul-09 23:22 
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 

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.