-----------------------------------------------------------
New Message on cochindotnet
-----------------------------------------------------------
From: kpraveendotcom
Message 2 in Discussion
Hi Govind,
It looks like the main() is in your login form. This is what I do:
1. Add class (Menu: Project->Add class...) to the project
2. Cut "main()" along with its body from login form and past it into the new
class file.
Remember to include STAThread attribute.
3. Show login form as a modal form (using ShowDialog() method)
4. Based on the dialog result, show the MDI frame form.
Eg:
[STAThread]
static void Main()
{
FormLogin frmLogin = new FormLogin();
if(frmLogin.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
System.Windows.Forms.Application.Run(new MDIFrame());
}
}
Let me know if this works for you
-Praveen
Hi all,
I am making a c# windows application .the application starts with a login
form .and on its ok click after verifications the mdi form has to b loaded
but i m unable to unload the login form .
could ne one please tell/suggest to get tis happen.
Thanks.
Govind singh yadav
[EMAIL PROTECTED]
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/cochindotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]