G
Guest
I want to lock all controls except the buttons on a form. I sometimes need
the form to call lockForms(Me).
public sub lockControls(frm as form)
for each ctrl as control in frm
if left(ctrl.name,3)<>"btn" then
ctrl.locked=true
endif
next
end sub
Unfortunitly "ctrl.locked=true" is not valid in .net 2.0.
Is there an equivalent method in 2.0 for this?
Thanks
the form to call lockForms(Me).
public sub lockControls(frm as form)
for each ctrl as control in frm
if left(ctrl.name,3)<>"btn" then
ctrl.locked=true
endif
next
end sub
Unfortunitly "ctrl.locked=true" is not valid in .net 2.0.
Is there an equivalent method in 2.0 for this?
Thanks