Keeping forms visible

  • Thread starter Thread starter simonc
  • Start date Start date
S

simonc

I am writing a program that runs doing a repetitive task
for several minutes. When I start it calculating the
program's form only stays visible as long as it is the top
window on the desktop. As soon as I put another window on
top of the form I can't get back to the form. If I
minimise everything else on the desktop I still can't seen
the content of the form - the window just contains
whatever bit of graphic previously occupied that bit of
screen. And my form doesn't respond to clicking its button
on the task bar. Please can someone tell me how to keep
the form visible.

I am also trying to add a label to the form which updates
periodically with a progress message while the program is
running. Again I can't seem to get this to refresh while
the program is running. Any help most gratefully received.
 
Hi Simonc,

Take a look at application.doevents,

It is possible that that will solve your problem.
Cor
 
* "simonc said:
I am writing a program that runs doing a repetitive task
for several minutes. When I start it calculating the
program's form only stays visible as long as it is the top
window on the desktop. As soon as I put another window on
top of the form I can't get back to the form. If I
minimise everything else on the desktop I still can't seen
the content of the form - the window just contains
whatever bit of graphic previously occupied that bit of
screen. And my form doesn't respond to clicking its button
on the task bar. Please can someone tell me how to keep
the form visible.

I am also trying to add a label to the form which updates
periodically with a progress message while the program is
running. Again I can't seem to get this to refresh while
the program is running. Any help most gratefully received.

Multithreading:

<http://www.devx.com/dotnet/Article/11358>
 
Back
Top