Hi,
I'm trying to disable all the controls on any form that is opened.
We have a class that is called, and it goes and checks the setup of which menu item to use for the formRun and also checks user group. Then if a user is not in the user group, they should be able to open the form, but they should not be able to click on any of the buttons, or edit anything on the form.
I have tried the following but it doesn't seem to work:
for (i = 1; i <= formRun.form().design().controlCount(); i++)
{
control = formRun.form().design().controlNum(i);
control.enabled(false);
this.disableControls(control);
}
The disableControls method does the same thing but is called recursively. When I debug the code, the value for Enabled is changed to "No", yet when I look at the form all controls are still enabled.
Is there another way perhaps to perform this?
Thanks,
Dyls