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

How to Share webservice object to all user

How to fix error Msg 1801, Level 16, State 3, Line 1