Dear All
I have a question about changing the properties of different textboxes together(or similar controls like buttons or so). Let me tell you the real problem.
What i want is that , i have 40 textboxes in different tabs on a single tab container.I want whenever i hit the clear button or any other option(palced on diffrent tabs) all the textboxes in the current tab should get cleared or enable , disable or readonly(whatever) with single click.. of the button(for the active tab only)
I don't want to make a subroutine or function in which i have to set the properties like Sub CleatTextboxes()
txt1.text=""
txt2.text=""
txt3.text=""
txt4.text=""
txt5.text=""
txt6.text=""
txt7.text=""
end sub
Sub SetReadOnlyTrue()
txt1.readonly=True
txt2.readonly=True
txt3.readonly=True
txt4.readonly=True
txt5.readonly=True
txt6.readonly=True
txt7.readonly=True
end sub
Answer Should be like For i=0 to Tabcontainer1.findcontrol(tab1).controls(textboxes).count
control(i).readonly=false
Control(i).text=""
next
or something more appropriate
Reply soon
Thank you for your earlier reply
Ashish