Windows Develop Bookmark and Share   
 index > Windows Forms General > Looking for a LOGIN form example
 

Looking for a LOGIN form example

In my project I want to add a LOGIN FORM  to authenticate users of my application. I am in the search of a model of Login Form and his management.

Thank you for your reponses. 
MigrationUser 1  Wednesday, June 18, 2003 9:09 PM
Load your login form in the Main method, but before you actually start the main windows form loop( Application.Run), take alook at the TaskVision as an exmaple



[STAThread]
static int Main(string[] args) 
{

System.Windows.Forms.Application.ThreadException += 
new ThreadExceptionEventHandler(
new ErrorHandler.ErrorService().OnThreadException);



                 using(LoginForm login = new LoginForm())
{
if ( login.ShowDialog() ==  DialogResult.Cancel)
return;
else
{// process the authentication
}
}

}
}

MigrationUser 1  Sunday, June 22, 2003 10:04 PM
thanks Mustapa for you response. That resolve my pb ! ;-)
MigrationUser 1  Thursday, July 03, 2003 10:05 AM

You can use google to search for other answers

Custom Search

More Threads

• stell having problem
• Network directorys and FileSystemWatcher
• BindingSource Position
• Disposed Object and Passing values from one form to another. (VC# 2005)
• Re-Installing windows xp pro
• FileSaveDialog Initial Directory
• create my own Windows.Form
• Remoting
• How to add shape to status bar?
• Membership and Personalisation in Windows Forms