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;& password==abcd)
{
dialogresult=dialogresult.ok;
}
else
{
messagebox.show("invalid username , password);
}
}
}
}
want validate login page , when enter username "abcd" and
password "abcd" show next form if wrong show message box wrong</pre>
in program.cs class,
<pre lang="cs"> static void main()
{
application.enablevisualstyles();
application.setcompatibletextrenderingdefault(false);
application.run(new form1());
if(username==abcd amp;& password==abcd)
{
dialogresult=dialogresult.ok;
}
else
{
messagebox.show("invalid username , password);
}
}
}
}
want validate login page , when enter username "abcd" and
password "abcd" show next form if wrong show message box wrong</pre>
hi,
for requirement can use code project solution http://www.codeproject.com/articles/13922/validate-user-input-in-windows-forms
for real time user validation db can refer http://www.aspsnippets.com/articles/validating-check-username-and-password-from-database-in-aspnet.aspx
thanks
abhishek
Visual Studio Languages , .NET Framework > Visual C#
Comments
Post a Comment