Flushing screen

  • Thread starter Thread starter tshad
  • Start date Start date
T

tshad

Isn't there a flush() command to flush the screen so you can see status data
written to a text box during long calculations?

I have some data conversions and file conversions that take a long time and
I am writing status lines to a textBox, but they don't see it until all the
work was done.

Isn't there a flush command I can call periodically that will update the
screen?

Thanks,

Tom
 
tshad said:
Isn't there a flush() command to flush the screen so you can see status
data written to a text box during long calculations?

I have some data conversions and file conversions that take a long time
and I am writing status lines to a textBox, but they don't see it until
all the work was done.

Isn't there a flush command I can call periodically that will update the
screen?

Take a look at the controls' 'Refresh' and 'Update' methods. In addition to
that you can call 'Application.DoEvents' to prevent the UI from locking.
Depending on the case you could use a background thread too which performs
the operation.
 

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

Back
Top