Link to home
Start Free TrialLog in
Avatar of Amitava_Mukherjee
Amitava_MukherjeeFlag for India

asked on

Close form problem

Hallo,

I am creating a "ClassLibrary" project in C#. I am using VS 2008. My dll is calling from AutoCad for creation of some AutoCad entities. Now,

In my dll two forms are there.

Form A
Form B

From Form A, Form B is opening. I am using the following lines to open the Form B

Form B.Show(this);

I am actually hiding the Form B at close event by using the following lines

       private void frmAssignMilestone_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            e.Cancel = true;
        }

Now When I am trying to close Form A after closing of Form B using the following line

this.close

The Form A is not closing. This is the problem. Please Help

Thanx
Avatar of jimmycdinata
jimmycdinata
Flag of Indonesia image

Can I see the complete code?
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Amitava_Mukherjee

ASKER

THanx, it works