Windows application does not close when i press the close button

  • Thread starter Thread starter Umut Tezduyar
  • Start date Start date
U

Umut Tezduyar

Problem description: In my windows forms application, i have lots of user
controls and one windows form. According to the selection from menu, the
reletad user control is added to the windows forms control collection. If i
clear the control collection of the windows form, before adding the user
control, my windows application doesnt close even from the "X" button. But
if i dont clear the control collection, there is no problem. Is is a bug of
..Net Framework, is there a solution for this.
 
Hello,

Umut Tezduyar said:
Problem description: In my windows forms application, i have lots of user
controls and one windows form. According to the selection from menu, the
reletad user control is added to the windows forms control collection. If i
clear the control collection of the windows form, before adding the user
control, my windows application doesnt close even from the "X" button. But
if i dont clear the control collection, there is no problem. Is is a bug of
.Net Framework, is there a solution for this.

http://www.jelovic.com/dotnetbugs/index.html

HTH,
Herfried K. Wagner
 
There is more to it than that. I moved the focus and the bug does not
always go away (though it happens less often!)

I am getting general dotnet instability, for which this is only one form.
Wierd crashs in odd, unreproducable places. Simple 100% managed, no
threads.

Will post if I find it.

Anthony
 
Hi Anthony,

Have you tried with OnControlRemoved. It has to be called on the form not on
the control which host the removed control if there is any. Usually this
helps. I'm start thiking that the problem is somewhere else.
Can post a code snippet, which demonstrates the problem?
B\rgds
100
 
Let me try that, thanks for your help

100 said:
Hi Anthony,

Have you tried with OnControlRemoved. It has to be called on the form not on
the control which host the removed control if there is any. Usually this
helps. I'm start thiking that the problem is somewhere else.
Can post a code snippet, which demonstrates the problem?
B\rgds
100

"Anthony Berglas" <aberglas at frontsys (a spam free .com)> wrote in message
http://www.google.ca/[email protected]&rnum=1
 
Back
Top