A
Alejandro Casal
Hi there,
I'm writing a .net Windows application in C#. I have 2 forms: the MainForm
and the Login. The MainForm opens the Login as Dialog from the MainForm's
constructor, and Login asks for username/password. I get these data from the
MainForm and check using a Web service that they're ok. If username/password
are not ok, I want to close the whole application, but I don't know how
(this.Close() doesn't work). Can I close the app from the MainForm's
constructor? Should I call the Login dialog and web service somewhere else?
Thanks,
Alejandro.
I'm writing a .net Windows application in C#. I have 2 forms: the MainForm
and the Login. The MainForm opens the Login as Dialog from the MainForm's
constructor, and Login asks for username/password. I get these data from the
MainForm and check using a Web service that they're ok. If username/password
are not ok, I want to close the whole application, but I don't know how
(this.Close() doesn't work). Can I close the app from the MainForm's
constructor? Should I call the Login dialog and web service somewhere else?
Thanks,
Alejandro.