Make a control read-only
- In design mode, right-click the control you want, and then click Properties on the shortcut menu.
- On the Display page, select the Read only check box.
The following code example uses the ModifiedFormPages property of the current Inspector object to make TextBox1 read-only.
Item.GetInspector.ModifiedFormPages("P.2").TextBox1.ReadOnly = True