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

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'