How does the Dynamic Control Creation Mechanism work in Visual Basic.NET?
Another important goal of control arrays in Visual Basic 6.0 is that they provide an easy way to add controls at run time. You can create the control array at design time and then add controls of the same type to the array at run time. In Visual Basic .NET, you do not need a control array to add controls at run time. You can use the Controls collection to add controls of any type at run time; this will be shown in the next code example. In the case where controls are dynamically added to a form according to the original Visual Basic 6.0 application logic, it will be necessary to dynamically connect the new controls with the preexisting event handlers. This can be done with the AddHandler statement, which ties events raised by controls with specific procedures that can handle the event.