A From won't close (c#)

Y

Yuriy Zubarev

Hello everyone,

I have main application form (child of System.Windows.Forms.Form) that
hosts quite a number of different visual components. Some time after
working with those components, the form refuses to be closed - I click
menu item that invokes Form.Close() method, I click 'close' icon on
the caption of the window (form) - nothing happens. No event comes to
Form_Closing(Object, CancelEventArgs) method either.

I'm at a loss how to even start debugging this situation and I would
appreciate any suggestions.

Thank you for your time,
Yuriy ZUbarev
 
Y

Yuriy Zubarev

I have 1.0. Was it a bug in Visual Studio or .NET Framework itself?
Any way to patch it?

Thank you,
Yuriy ZUbarev
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed) (Yuriy Zubarev) scripsit:
I have main application form (child of System.Windows.Forms.Form) that
hosts quite a number of different visual components. Some time after
working with those components, the form refuses to be closed - I click
menu item that invokes Form.Close() method, I click 'close' icon on
the caption of the window (form) - nothing happens. No event comes to
Form_Closing(Object, CancelEventArgs) method either.

Maybe the famous "form close bug"?

C# code to repro the close bug:

<http://www.jelovic.com/binaries/WindowsFormsCloseBugDemo.zip>

Some information on the bug:

<http://makeashorterlink.com/?T2FC26194>

Fixed in .NET 1.1.
 
Y

Yuriy Zubarev

On 23 Nov 2003 13:17:37 +0100, (e-mail address removed) (Herfried K.
Wagner [MVP]) wrote:

Thank you for the link! That was exactly the problem I was
experiencing.

Yuriy Zubarev
 

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