Hi
I developing application using C#,and user name and password save in database.Only few users can access to certain forms and admin can access to all forms.How do I do this?
Thanks
Tank50
Hi
I developing application using C#,and user name and password save in database.Only few users can access to certain forms and admin can access to all forms.How do I do this?
Thanks
Tank50
Take a look at this article - http://www.codeproject.com/KB/cs/SecureBaseForm.aspx
SUMMARY: This article describes how to implement Role-based Windows Form security. The solution includes a "SecureBaseForm" which allows/denies access to an inheriting Form and may fire the UserIsAllowed or UserIsDenied events.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.