dwe0608
asked on
looping through controls
The following code does not sem to work
Dim iObj As Control
For Each iObj In Me.Controls
If iObj.Tag = "hidden" Then
iObj.Visible = False
End If
Next
in each controls tag I place the word "hidden". The controls will consist of labels, textboxes and pictureboxes.
Dim iObj As Control
For Each iObj In Me.Controls
If iObj.Tag = "hidden" Then
iObj.Visible = False
End If
Next
in each controls tag I place the word "hidden". The controls will consist of labels, textboxes and pictureboxes.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How to read/write a INI file:
https://www.experts-exchange.com/questions/21596960/Read-Write-From-INI-File-in-VB6.html
https://www.experts-exchange.com/questions/21596960/Read-Write-From-INI-File-in-VB6.html
ASKER
pft ... I had misspelled "hidden" - only had one "d" and well what a time waster this has been ....
answer this query for the points ....
If I wanted to store the names of each control in an ini file - including its index, how would I do that ? I could then retrieve it later and then make the controls either hidden or visible depending on the value contained in the ini file ?