Secure Windows Controls in VB.NET

  • Thread starter Thread starter Bill
  • Start date Start date
B

Bill

Hi,

I'd like to show a window in VB.NET with 10 fields. I
want to be able to disable 5 fields if user A has view-
only rights. But if user B has full rights then user B
should be able to change those fields.

This would be a security system that could be applied to
many windows.

I have this in a previous 16-bit programminig language and
wondered what the .NET approach for something like this is
or do I need to bake my own.

Thanks,
Bill
 
* "Bill said:
I'd like to show a window in VB.NET with 10 fields. I
want to be able to disable 5 fields if user A has view-
only rights. But if user B has full rights then user B
should be able to change those fields.

This would be a security system that could be applied to
many windows.

I have this in a previous 16-bit programminig language and
wondered what the .NET approach for something like this is
or do I need to bake my own.

How did you do it in the 16-bit environment? What's exactly the
problem?
 
In the 16-bit environment I had a product with 3 tables
defined - users, doors, access. You put your users in the
users table, doors (equate numbers) could be screens,
fields, whatever Window control that could be disabled or
hidden, and the access table would list what "doors" users
had access to.

When you were designing a screen, you would place a
template on the screen (let's say in .NET you could place
a control on the screen during development) then a list
would display the controls on your screen you were
developing. You would select what controls (fields, radio
buttons, check boxes, etc.) needed to be disabled or
hidden. Every "door" had a number assigned to it.

When you ran your program and the window opened, a piece
of code would check if the current user (determined by
logging in to an application) had access to what controls
on the screen. Depending on the user and access
the "doors" would be disabled or hidden.

Now when you have that situation in 10 applications for
300 users is there a product that does something like that
already?

Hope this all makes sense.

Thanks,
Bill
 
Back
Top