By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 1,088 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

main form render...refresh....programatically etc

P: n/a
JH

I have an application that runs for many minutes. During this time if i open
other applications the form becomes all white i.e it does not render or
refresh the window. Is there a way (programatically) to render or refresh
the main form window.......

any idea on this and related issues is appreciated.
Thanks
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Use threads or simply throw in some Application.DoEvents

Greg

"JH" <yh*******@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

I have an application that runs for many minutes. During this time if i open other applications the form becomes all white i.e it does not render or
refresh the window. Is there a way (programatically) to render or refresh
the main form window.......

any idea on this and related issues is appreciated.
Thanks

Nov 20 '05 #2

P: n/a
In addition to Greg,

Set that do events in a loop as this
do while MyProcessIsNotReady
threading.thread.sleep(1000)
application.doevents
loop

Otherwise a lot of power is spended to that loop.

I hope this helps.

Cor
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.