Sub App_Start Form1.Show For i = 1 To 30 AddEvent("ImageButton" & i, click, "Down") Next End SubSub Down Msgbox(Sender)End Sub