G
Guest
My windows form "Form1" has one Button "button1" and one TextBox "textBox1".
When I click button1, it do a job for each file in a directory. The job
include some platform invoke call. Before processing a file, I set
textBox1's Text property as filename of the file processed, and call
this->refresh() to refresh the form.
Every thing seems OK.
But, if the process time for some file is a little long (say 10 seconds) and
during processing I click at the form, the cursor becomes Cursors.Wait .
After that, the textBox1 stop refresh the filename untill all the jobs are
done.
All the jos are well done except stop refreshing.
How to fix it. Thanks
AJang
When I click button1, it do a job for each file in a directory. The job
include some platform invoke call. Before processing a file, I set
textBox1's Text property as filename of the file processed, and call
this->refresh() to refresh the form.
Every thing seems OK.
But, if the process time for some file is a little long (say 10 seconds) and
during processing I click at the form, the cursor becomes Cursors.Wait .
After that, the textBox1 stop refresh the filename untill all the jobs are
done.
All the jos are well done except stop refreshing.
How to fix it. Thanks
AJang