all groups > vj# > december 2004 >
You're in the

vj#

group:

UI does not refresh


UI does not refresh George Rammos
12/22/2004 6:51:14 PM
vj#: Hi all,

I have created a small application which uses a Windows Form.

During execution, if I switch to another application (say ALT-TAB) and
then return to my application that still executes, the UI goes blank
(well, white really) and does not refresh until the program stops
executing and becomes just an idle process.

I tried to set a time to Refresh() and ResumeLayout(), but still no luck.

Any help would be greatly appreciated. It may worth mentioning that when
my application runs, it uses near to 100% of the CPU resources and if I
click on the Window Bar it says "[App_name] is not responding".

Best regards,

George
--
To reply directly, please substitute the first part of me email with my
Re: UI does not refresh Lars-Inge Tonnessen [VJ# MVP]
12/27/2004 7:13:59 PM

What does you app do while you push Alt+Tab ? Any computing ?


If you do extensive computing, I would recomend you to use a separate thread
for the computing part and the main thread with E.g. a prograss bar or
Cancel button for the GUI.



Best Regards,
Lars-Inge Tonnessen

AddThis Social Bookmark Button