Login Form

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Todd (anonymous_at_discussions.microsoft.com)
Date: 04/05/04


Date: Mon, 5 Apr 2004 13:00:24 -0700

Gary's solution more accurately answers your direct
question, but I like to open the login form before
opening the Mdi parent. Hey, why should they see it if
they are not authenticated.

[STAThread]
static void Main()
{
   if(Authenticate() == true)
   {
                                        
      MainForm frmMain = new MainForm();
      Application.Run(frmMain);
                                        
   }
}

In Authenticate() open your login form as a dialog an
pass back success or fail.

Todd

>-----Original Message-----
>Hi,
>
>I need to open a login form when an applicaton starts
(MDI form).
>How can i trap the moment when MDI parent form is on?
>
>Thanks ,
>Mark
>.
>



Relevant Pages

  • Re: Controling ShowDialog()
    ... if the Login form is ... LoginForm login; ... Crude example, but I don't have my project in front of me right now. ... Should the parent of the login form just be the Mdi Parent? ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: [Full-disclosure] Paypal Phishing Again
    ... "Hey, I tried to send a message to this address but it was bocked. ... > Of Nick FitzGerald ... > Jason Weisberger wrote: ... given that its three weeks old AND that the login form ...
    (Full-Disclosure)
  • RE: Application center test
    ... Thanks for your response. ... Forms authentication relies on login ... and it's the login form which is responsible for authenticate the ...
    (microsoft.public.vsnet.enterprise.tools)
  • RE: Choosing Integrated vs. Forms authentication dynamically
    ... I think you may make the user make the choice on the login form. ... a special windows account with name and password. ... detailed information, you may refer to this KB article: ... Authenticate against the Active Directory by Using Forms ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Authentication from another Application on server
    ... Is it possible to authenticate a user using a login form running in a ... different application on the same server as the "secure" application? ... I have a free/sell site like www.domain.com with a login form on its home ...
    (microsoft.public.dotnet.framework.aspnet.security)