G
George Hardy
hello all,
i am trying to impelement form level security in my vb.net 2003 application.
i have a database table that has the name of the form, subform, userid, and
read,edit,del,add rights (boolean). The subform is a group box or tabpage
that would be visible or enabled (read or edit rights)
my question is:
I have a security class I pass a form object into. When I try to set the
enabled property or visible property on the group box in question, i get a
run-time exception: "Cast from string "grpInventory" to type 'Integer' is
not valid"
Here is the code in my Security class:
MyForm.Controls(subformname).Enabled = True
So how can I access a control on a passed in form, if i cant do it by name?
Thanks a bunch!
george hardy
i am trying to impelement form level security in my vb.net 2003 application.
i have a database table that has the name of the form, subform, userid, and
read,edit,del,add rights (boolean). The subform is a group box or tabpage
that would be visible or enabled (read or edit rights)
my question is:
I have a security class I pass a form object into. When I try to set the
enabled property or visible property on the group box in question, i get a
run-time exception: "Cast from string "grpInventory" to type 'Integer' is
not valid"
Here is the code in my Security class:
MyForm.Controls(subformname).Enabled = True
So how can I access a control on a passed in form, if i cant do it by name?
Thanks a bunch!
george hardy