Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Index Question

Status
Not open for further replies.

Gti

Programmer
Jul 23, 2001
99
PT
Hi!

I need some help. I have 14 text box and when the program
run the text boxes are enabled=False
When i click in a button i want the text boxes pass to True

I'm trying to make it with the index of the text boxes but i can't do it!!!!!

Any help

Tkx ;)
 
Create a new program...

Put a single text box on the form...

Change The textbox's index to '0'

Select the textbox abd copy it. Then paste it, when it prompts you to make an object control array say yes. Paste the control 14 times.

Add your button to the form

Add this code to the form

Private Sub Command1_Click()
dim i as integer
for i = 0 to 13
text1(i).enabled = true
next
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top