C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

login form..urgent.../


Posted Date: 24 Nov 2008      Posted By: Carmel Beeshow      Member Level: Silver     Points: 1   Responses: 1



i am using c#.net to develope login form
when i click ok button ,it check the condition and it redirect to another form but the login window not getting closed

i need to close this login window automatically when i click ok button and satisfy the condition

please send me the source code
urgent





Responses

Author: Satish N Raykar    24 Nov 2008Member Level: BronzeRating: 2 out of 52 out of 5     Points: 5

Use the below code in the main form, this will cal the login form, after clicking OK buttonlogin form will be closed automatically.


frmLogin login = new frmLogin();
login.ShowDialog();
if (login.DialogResult == DialogResult.OK)
{
Application.EnableVisualStyles();
Application.Run(new frmMain());

}

Regards,
SN Raykar



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : How to download Email attachments
Previous : template textbox in Detailview
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use