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?


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.