Dim ctl As Control
For Each ctl In Me.Controls
If ctl.GetType.GetMember("ReadOnly").GetUpperBound(0) = 0 Then
CallByName(ctl, "ReadOnly", CallType.Set, "True")
ElseIf ctl.GetType.GetMember("Enabled").GetUpperBound(0) = 0 Then
CallByName(ctl, "enabled", CallType.Set, "False")
End If
Next