Form becomes disabled/text invisible

J

Julie

Hi,
I have a class that inherits from Form. It's pretty simple; it
displays text. I have multiple of these, which get constructed
dynamically.
Unfortunately, if I click on one of these Forms, it becomes disabled,
and the text inside of it is no longer visible (the scroll bar is no
longer visible, etc.). In fact, it causes the rest of the windows to
become disabled as well.

It's as if the application has become too busy to maintain the Form's
visibility.

The application is multi-threaded.

What's going on? Thanks.
Julie
 
J

Julie

Julie skrev:> Hi,



I think the keyword is multi-threaded.

You are probably trying to make visual changes to the form from another
process.

Yes, I just realized that myself! Thank you! I just changed the code
so that it's constructing the Forms on the wrong thread.
 
M

Mike Lovell

Julie said:
Hi,
I have a class that inherits from Form. It's pretty simple; it
displays text. I have multiple of these, which get constructed
dynamically.
Unfortunately, if I click on one of these Forms, it becomes disabled,
and the text inside of it is no longer visible (the scroll bar is no
longer visible, etc.). In fact, it causes the rest of the windows to
become disabled as well.

It's as if the application has become too busy to maintain the Form's
visibility.

The application is multi-threaded.

Could you post an example project which demonstrates the problem?

Would be happy to take a look
 

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

Top