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

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

How to Share webservice object to all user