Hi,
In VB6, I had an MDI app that was used office wide and each person was allowed different levels of access.
For example, on a menu named Process, there were 3 functions. Person A could access Function 1 and 2 while Person B could Access 1 and 3.
When Person A logged in, my app checked the access rights of Person A and disabled the menu item for which he was not allowed access. This was done by using code something like the following on loading the form.
Dim ctl as control
For each ctl in me.form
If ctl.Tag = "A" then
ctl.enabled = true
Else
ctl.enabled = false
End If
next ctl
The menu items in the app had a tag that was specific to a level of control, so the control was enabled/disabled if the right tag was present.
In vb.net, I am trying to figure out the best way to control access like I did in VB6. The menu items don't have a tag property and they are not included in the control collection for the form.
Has anyone come across this issue?
Regards,
Peter
In VB6, I had an MDI app that was used office wide and each person was allowed different levels of access.
For example, on a menu named Process, there were 3 functions. Person A could access Function 1 and 2 while Person B could Access 1 and 3.
When Person A logged in, my app checked the access rights of Person A and disabled the menu item for which he was not allowed access. This was done by using code something like the following on loading the form.
Dim ctl as control
For each ctl in me.form
If ctl.Tag = "A" then
ctl.enabled = true
Else
ctl.enabled = false
End If
next ctl
The menu items in the app had a tag that was specific to a level of control, so the control was enabled/disabled if the right tag was present.
In vb.net, I am trying to figure out the best way to control access like I did in VB6. The menu items don't have a tag property and they are not included in the control collection for the form.
Has anyone come across this issue?
Regards,
Peter