blah blah blah is here! blah blah » Close

up0down
link

hello
i want to create a user groups in my win app, such that the admin can decide which authority can he give to any registered user at runtime..
for example the administrator can prevent any user from viewing any form or control in the form, or prevent him from editing the data.
as i've seen there is no control in the control box that serves this
do anyone have any thing that can help to achieve this ?
any suggestion is welcomed
thanks and regards

last answered 2 years ago

1 answers

up0down
link

Hi saiden,
I remember building one in java. What i did was i made a database table with usernames and passwords, then made a login window witch checkes the username and password. if there is a match, then the program continues, otherwise it gives an error. You could do the same using c# and you could do the same when adding a role. Add a role column to the database with the users role
===================
username | password| role |
===================
ryafel | useless | admin|
----------------------------------
| | |
----------------------------------
The database should look somthing like that

This post was imported from csharpfriends, if you have a similiar question please ask it again.

All previous members have been migrated, hope you enjoy the new platform!

Feedback