adding controls in collection
Hi,
I have this resiz code for moving and resizing controls on a form. What I'm trying to do is to use initially the tag property of each control to gather its size, position, etc... and then call up a resizer function by passing each control to it. How do I reference each control to pass it to this function:
VB Code:
Private Sub Form_Resize()
Dim Ctl As Control
Set Ctl = Frame1
Call Resizer(Ctl) 'but this passes the caption to the resizer function. Maybe I could use a collection as I have dozens of controls and could just loop them through. Thanks.
End Sub