Hey,

I've got a problem when I try to close an application.

I've got several forms and when the application loads, it creates a form like:

form2 frm2 = new form2();

Inside form2 there is a db connection. When the connection is not valid, it returns a messagebox and after that Application.Exit();

But it doesnt exit. It continuous loading Form1. Does anyone know what I am doing wrong?

Thankyou very much,

Abadi