Hi Amjad,
The answer is simple,
Put somewhere in that procedure
application.doevents
If it is a one sentence procedure, you should have to make an extra thread
wherein you put that procedure. The timer should stay on the form because
you cannot get easy on a windowform from a thread.
But that is a lot of work for a blinking label.
I hope this helps?
Cor
"> Hi Cor,
> Thanks for your reply.
> I tried doing the code you suggested and it didn't work as I would like to
be.
> The Label doesn't blink until the procedure finishes its calculations,
although the timer was enabled at the beginning of the procedure.
> It seems to me that the Tick event is not fired when the form is busy
doing something else!
> I guess I can re-phrase my question as: How can I run two loops at the
same time (concurrent, not nested loops) ?
>
> Any other ideas?
>
> Amjad
|