This way:
public static void Main()
{
try
{
// launch authentication form
SplashForm f = new SplashForm();
if (f.ShowDialog() == DialogResult.Ok)
// try connecting with supplied credentials
if (Connect(f.txtName.Text, f.txtPassword.Text))
// launch MDI parent form
Application.Run(new MDIMainForm());
}
catch(Exception ex)
{
MessageBox.Show(ex.Message,"MDIApp Error", MessageBoxButtons.OK,
MessageBoxIcon.Stop);
}
}
"A. K. Bhardwaj" <AK********@discussions.microsoft.com> escribió en el
mensaje news:F5**********************************@microsof t.com...
I have to ask for login and password and authenticate user before display
of
main mdi form. How can i call login form before MDI form as
Application.Run
method is using MDI form instance???
Thanks in Advance...
A. K. Bhardwaj