Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please I want to implement user permissions in vb. After logging to the system. The user's permissions are read from mssql database. Controls on the forms are enabled, visible etc based on the users permissions. Example of permissions: edit profile, delete profile etc.
And I want to know whether to implement each of the permissions as a column with a bit type or
Put all the permissions in different rows with a column type of bit to specify [enabled, visible]

What I have tried:

I tried to do it but I don't know how to go about it.
Posted
Updated 16-Mar-16 6:00am

1 solution

There is an article by Jesse Liberty that discusses this in some detail. I'm afraid the code samples are in C# but they should be easy enough to translate.

Controls Based Security in a Windows Forms Application[^]

A simpler way might be to have different forms for different user types
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900