Hi,

Form1 form1 = Form1; //Form2 is created and closed inside Form1.

When I call form1.form2.Close() method the following method is called
when I run the application in few machine but not in others.

private void Form2_Closing(...)

Any clues on this?

Thanks in advance.

Re: Form.Closing event not fired always when i call Form.Close method by Bryan

Bryan
Thu Apr 19 20:11:54 CDT 2007

I have only seen this happen when Form A opens Form B which opens Form
C. Closing Form A fires the closing event for Form A and Form B but not
Form C.

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
Web Site: http://www.composablesystems.net



"berylwilson" <berylwilson@gmail.com> wrote in message
news:1176964357.803688.237760@b58g2000hsg.googlegroups.com:

> Hi,
>
> Form1 form1 = Form1; //Form2 is created and closed inside Form1.
>
> When I call form1.form2.Close() method the following method is called
> when I run the application in few machine but not in others.
>
> private void Form2_Closing(...)
>
> Any clues on this?
>
> Thanks in advance.