hello all,
I use the following code to lock my textboxes:
vb Code:
Public Sub Lockdown() For Each tb In Me.Controls If TypeOf tb Is TextBox Then tb.Locked = True tb.BackColor = &H80FF80 End If Next For Each dt In Me.Controls If TypeOf dt Is DTPicker Then dt.Enabled = False End If Next End Sub
My problem is this: I have 3 frames in an array and only want 2 of the 3 frames textboxes to be locked.
I try different variations of the above code, but nothing works as of yet.
Thanks ahead of time.




Reply With Quote