|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Click on Title BarHi
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 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 > KillerCode wrote:
Show quote > Hi Not sure, but perhaps in the mouse down event you can add> > 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 Application.DoEvents? B. |
|||||||||||||||||||||||