any trick to move a window in a tight loop

P

pamela fluente

Hi guys,

i just wanted to check out if there is some know trick to be able to
move a form (waiting for outcome)
after i have launched a tight loop (release more) without the
application.doevents in it.

Since i am running some very lengthy simulations (factoring numbers
with some hundred digits) i did not bother to place the doevents or
similar stuff
but now i feel that these frozen windows are sometimes
bothering :)))

Any known trick to be able to move it ? Any suggestion for future
runs, something without giving up in speed ??

Pam
 
A

Arne Vajhøj

i just wanted to check out if there is some know trick to be able to
move a form (waiting for outcome)
after i have launched a tight loop (release more) without the
application.doevents in it.

Since i am running some very lengthy simulations (factoring numbers
with some hundred digits) i did not bother to place the doevents or
similar stuff
but now i feel that these frozen windows are sometimes
bothering :)))

Any known trick to be able to move it ? Any suggestion for future
runs, something without giving up in speed ??

Do the long running stuff in a separate thread.

Arne
 
P

pamela fluente

Do the long running stuff in a separate thread.

Arne

Thanks a lot for this idea. I just placed at work a BackgroundWorker
and seems to do well. Window is functional.

Any hope to move the ones already frozen with some trick ?


Pam
 
A

Arne Vajhøj

Thanks a lot for this idea. I just placed at work a BackgroundWorker
and seems to do well. Window is functional.

Any hope to move the ones already frozen with some trick ?

An app you have already started?

I don't think so.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top