Re: adapter.fill and progress bar
- From: "Miha Markic [MVP C#]" <miha at rthand com>
- Date: Tue, 10 Jan 2006 10:59:59 +0100
No time for sample,
- events raised from backgroundworker (which is not the only way to use
worker threads) are synchronized with the control backgroundworker is placed
on. Thus you don't need any special synchronization.
- perhaps it has some overhead - but the advantage is big: having a
responsive UI. The same could be said for windows - why does windows use
multithreading?
- even with using raw threads, the synchronization with UI is fairly simple
You might read Chris Sell's article on this topic:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms01232003.asp
--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
"Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx> wrote in message
news:uBCwsfcFGHA.1124@xxxxxxxxxxxxxxxxxxxxxxx
> Miha,
>
>> Way better is to use a worker thread for stunts like this - otherwise
>> window refreshing sucks...
>>
> Do you mean instead of?
>
> Can you show me an example, I am curious about that. I could never do it
> in another way than this because of the fact that opposite to the Update
> the Fill does not give any event during the fill.
>
> An extra problem is that the backgroundworker is not in the UI and the
> progressbar has to be showed.
>
> However let us make it simple, I am really curious for your sample. (Can
> be in C# no problem)
>
> By the way, I will never use this because of all the other overhead. But
> that I told in my message.
>
> Cor
>
.
- Follow-Ups:
- Re: adapter.fill and progress bar
- From: Cor Ligthert [MVP]
- Re: adapter.fill and progress bar
- References:
- adapter.fill and progress bar
- From: Rain County
- Re: adapter.fill and progress bar
- From: Cor Ligthert [MVP]
- Re: adapter.fill and progress bar
- From: Miha Markic [MVP C#]
- Re: adapter.fill and progress bar
- From: Cor Ligthert [MVP]
- adapter.fill and progress bar
- Prev by Date: Re: Close - No Dispose - Memory Leak?
- Next by Date: Re: Close - No Dispose - Memory Leak?
- Previous by thread: Re: adapter.fill and progress bar
- Next by thread: Re: adapter.fill and progress bar
- Index(es):
Relevant Pages
|