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