diarratech
Technical User
I have an array of text boxes( 9 text boxes called txtOutput) and I'd like to loop through them. Some data (coming from another form) are going to populate some of the text boxes. I'd like to hide ONLY the text boxes that do not contain any data!
I started with the follwing code but then I got confused!!
For Each ctr_Type In frmSpiderChart.Controls
If TypeOf ctr_Type Is TextBox Then
If ctr_Type.Text = "" Then
ctr_Type.Visible = False
End If
End If
Next ctr_Type
End Sub
This will hide all text boxes. How should I loop trough the text boxes indexes?
Any hint?
Thanks
I started with the follwing code but then I got confused!!
For Each ctr_Type In frmSpiderChart.Controls
If TypeOf ctr_Type Is TextBox Then
If ctr_Type.Text = "" Then
ctr_Type.Visible = False
End If
End If
Next ctr_Type
End Sub
This will hide all text boxes. How should I loop trough the text boxes indexes?
Any hint?
Thanks