Search code examples
winformsc#-4.0user-controlsuser-permissions

How to give the permission to each user in winforms using c#


How to give the User permission in winform?

For Example

My application is based on retail shops,so the every employee having username and password,the Super Admin(Manager) he needs to give the permission to each user

  1. NOT all employees have the full rights to access all the forms.

  2. In each forms they have to access only selected controls only for ex. User x have permission only for ADD and Edit only, but not To delete the record.

  3. The User x not suppose enter discount more than 25%

  4. The Super Admin Have the permission to allow access to every employee.

In this I need some logic references

may grateful.


Solution

  • you should develop a Role-Base windows application. This tutorial describe what you need i hope it helps you