Windows Form freezes itself and everything else after it loads

C

CCAGS

I have a Windows forms project which is part of a larger project.
When I built this project, it worked great and had no problems.

I recently was running the main project and clicked on the menu to
open the form for this project and as soon as it loaded, all the
controls on the form were frozen, no reaction to clicking on buttons,
etc. Then I tried to close it by clicking on the X and nothing
happens..I tried to close the entire main project...everything is
frozen after this form loads. I have to stop it using the IDE to get
the project to close. In the executable, the same thing happens, and
Ctrl+Alt+Delete is the only solution once this form loads.

I can't find anything on line about what might cause this. I would
appreciate any help.

Thanks,
CC
 
C

Chris Morse

I have a Windows forms project which is part of a larger project.
When I built this project, it worked great and had no problems.

I recently was running the main project and clicked on the menu to
open the form for this project and as soon as it loaded, all the
controls on the form were frozen, no reaction to clicking on buttons,
etc. Then I tried to close it by clicking on the X and nothing
happens..I tried to close the entire main project...everything is
frozen after this form loads. I have to stop it using the IDE to get
the project to close. In the executable, the same thing happens, and
Ctrl+Alt+Delete is the only solution once this form loads.

I can't find anything on line about what might cause this. I would
appreciate any help.

Thanks,
CC

Sounds like something is blocking or otherwise causing your form to
hang.
I don't see any reason why a form would do this on it's own, so the
questions I would then ask are:
(1) How are you instantiating (creating and displaying) the form?
(2) What does the form do (go through) when it is loaded and displayed
(ie, anything special in Sub New, Form_Load, Form_Activated, etc? How
about any controls that handle Selection changes that may be firing
before the form is displayed?)

Since it's hanging after the form is initially displayed, I would try
and step through it with the debugger.
Something's causing it, and it's very unlikely that there is some bug
in .NET Forms that's to blame.

// CHRIS
 

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