Lets say that i make a program that creates lots of dynamic controls,(not really lots, but more like 5 or 6),using something like this...

'an if statement goes here

ControlName = InputBox("Give me the control name.", "Control Name")
Set Boton = frmDropWindow.Controls.Add("VB.CommandButton", ContolName)
Boton.Visible = True
Boton.Caption = InputBox("Give me the caption.", "Caption")
Boton.Move X - globalX, Y - globalY

Is there a way i can control every one of the new buttons?
maybe an array??

thanks for yout time!!

[Edited by nievesj on 11-17-2000 at 11:34 PM]