I ahve a program that say has 200 items on the form, they being textboxes. cboboxes etc.. I have set all them as follows: locked = false, as I don't want anyone to change the values in the boxes until an add button, or edit button is pressed.
In my cmdAdd procedure I have the following code:

txtOne.Locked = False
txtTwo.Locked = False
txtThree.Locked = False etc...

Is there a one line of code I can use , instead of writing all this code in. I know I can copy and paste.

I have seen Set_All_Locks somewhere, I don't know if is VB code proper or someone's own.

Thanks