How To Validate The Username And Password As Userdefiene Thing I Winform?


i want validate username , password in winformm using visual c#.


in program.cs class, 
<pre lang="cs"> static void main()
        {
            application.enablevisualstyles();
            application.setcompatibletextrenderingdefault(false);
            application.run(new form1());
            if(username==abcd amp;&amp; password==abcd)
            {
                dialogresult=dialogresult.ok;

            }
            else
            {
                messagebox.show(&quot;invalid username , password);
            }

        }
    }
}
want validate login page , when enter username "abcd" and 
password "abcd" show next form if wrong show message box wrong</pre>



Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

SQL Server 2008 - High Memory Usage

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

Problem In Configuring Biztalk 2009 In Creating A ReceivePort.When I Try To Create A Receive POrt I Got This Error