Home All Groups Group Topic Archive Search About
Author
26 Jul 2006 8:57 AM
KillerCode
Hi

I have a busy dialog (i.e. a form with a progress bar with the
description
of what is happening in the moment) but when I have a counter on it to
show
how many events have been processed until now and I click and hold the
mouse
on title bar of the form the counter stops until I release it or move
the
mouse....

I've tryed something like OnMouseDown -> return... but it still has no
effect...

What can I do to prevent this to happen!!!

Best Regards

Author
26 Jul 2006 11:57 AM
Gabriele G. Ponti
Use the BackgroundWorker for your "busy calculations", and update the
counter via the Invoke method.

http://www.codeproject.com/csharp/AsynchInvoke.asp


Show quote
"KillerCode" <santal.mal***@gmail.com> wrote in message
news:1153904234.451939.272190@i3g2000cwc.googlegroups.com...
> Hi
>
> I have a busy dialog (i.e. a form with a progress bar with the
> description
> of what is happening in the moment) but when I have a counter on it to
> show
> how many events have been processed until now and I click and hold the
> mouse
> on title bar of the form the counter stops until I release it or move
> the
> mouse....
>
> I've tryed something like OnMouseDown -> return... but it still has no
> effect...
>
> What can I do to prevent this to happen!!!
>
> Best Regards
>
Author
26 Jul 2006 12:01 PM
Brian Tkatch
KillerCode wrote:
Show quote
> Hi
>
> I have a busy dialog (i.e. a form with a progress bar with the
> description
> of what is happening in the moment) but when I have a counter on it to
> show
> how many events have been processed until now and I click and hold the
> mouse
> on title bar of the form the counter stops until I release it or move
> the
> mouse....
>
> I've tryed something like OnMouseDown -> return... but it still has no
> effect...
>
> What can I do to prevent this to happen!!!
>
> Best Regards

Not sure, but perhaps in the mouse down event you can add
Application.DoEvents?

B.

AddThis Social Bookmark Button