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

.NET (Core and Framework)

 
AnswerRe: Download Microsoft WinFS Beta 1 Pin
Dave Kreskowiak24-Jan-09 10:42
mveDave Kreskowiak24-Jan-09 10:42 
Questionwhat is difference between webservice and window service Pin
lipupal23-Jan-09 17:11
lipupal23-Jan-09 17:11 
AnswerRe: what is difference between webservice and window service Pin
Dave Kreskowiak23-Jan-09 17:36
mveDave Kreskowiak23-Jan-09 17:36 
AnswerRe: what is difference between webservice and window service Pin
Manas Bhardwaj25-Jan-09 23:34
professionalManas Bhardwaj25-Jan-09 23:34 
AnswerRe: what is difference between webservice and window service Pin
sivasss26-Jan-09 21:41
sivasss26-Jan-09 21:41 
QuestionSemi-background task on UI thread Pin
supercat923-Jan-09 8:31
supercat923-Jan-09 8:31 
AnswerRe: Semi-background task on UI thread Pin
Jon Rista23-Jan-09 8:39
Jon Rista23-Jan-09 8:39 
GeneralRe: Semi-background task on UI thread Pin
supercat923-Jan-09 10:03
supercat923-Jan-09 10:03 
Sometimes updating or redrawing a control can take a non-trivial amount of time. Not necessarily a huge amount of time, but non-trivial (say, 100ms). Control redrawing has to be done on the UI thread, but blocking the UI thread for 100ms at a time can make the application feel "chunky". It would seem better to allow other things to take priority over the control redrawing when there are other things to be done.

In some cases the right approach would be to have a different thread draw the control contents in an off-screen bitmap, and then make that bitmap available to the UI thread. Such an approach would not be without its own drawbacks, however. Having each control create a separate thread for processing would be wasteful. Having all the controls of a class share a thread might be better, but unless the controls contain logic to subdivide their work a slow control could delay action on the rest. Even in the absence threading issues, processing off-screen bitmaps and copying them is generally slower than drawing directly to the screen.

Incidentally, what should be the normal pattern for controls which allow actions that may take awhile to complete (e.g. setting the RichTextBox's .rtf property)? Microsoft's controls require that most actions be performed on the UI thread, and they'll block the UI thread for as long as the actions take, but that seems rather icky. I'd like to design any of my own controls to avoid such blocking behavior in the UI thread.
GeneralRe: Semi-background task on UI thread Pin
Jon Rista23-Jan-09 11:36
Jon Rista23-Jan-09 11:36 
GeneralRe: Semi-background task on UI thread Pin
supercat923-Jan-09 16:39
supercat923-Jan-09 16:39 
GeneralRe: Semi-background task on UI thread Pin
Jon Rista24-Jan-09 5:46
Jon Rista24-Jan-09 5:46 
GeneralRe: Semi-background task on UI thread Pin
supercat925-Jan-09 8:27
supercat925-Jan-09 8:27 
GeneralRe: Semi-background task on UI thread Pin
N a v a n e e t h23-Jan-09 16:43
N a v a n e e t h23-Jan-09 16:43 
GeneralRe: Semi-background task on UI thread Pin
supercat923-Jan-09 17:43
supercat923-Jan-09 17:43 
AnswerRe: Semi-background task on UI thread Pin
S. Senthil Kumar24-Jan-09 2:02
S. Senthil Kumar24-Jan-09 2:02 
GeneralRe: Semi-background task on UI thread Pin
supercat924-Jan-09 8:05
supercat924-Jan-09 8:05 
QuestionDictionary database? Pin
C Change23-Jan-09 7:00
C Change23-Jan-09 7:00 
AnswerRe: Dictionary database? Pin
Wendelius23-Jan-09 7:42
mentorWendelius23-Jan-09 7:42 
GeneralRe: Dictionary database? Pin
C Change23-Jan-09 8:14
C Change23-Jan-09 8:14 
GeneralRe: Dictionary database? Pin
Wendelius23-Jan-09 8:27
mentorWendelius23-Jan-09 8:27 
GeneralRe: Dictionary database? Pin
C Change23-Jan-09 8:37
C Change23-Jan-09 8:37 
GeneralRe: Dictionary database? Pin
Wendelius23-Jan-09 8:41
mentorWendelius23-Jan-09 8:41 
AnswerRe: Dictionary database? Pin
PIEBALDconsult23-Jan-09 12:31
mvePIEBALDconsult23-Jan-09 12:31 
AnswerRe: Dictionary database? Pin
PIEBALDconsult23-Jan-09 12:34
mvePIEBALDconsult23-Jan-09 12:34 
GeneralRe: Dictionary database? Pin
C Change25-Jan-09 0:25
C Change25-Jan-09 0:25 

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.