Saturday, January 16, 2010

How to make control array in vb.net 2003?

As far as I know, VB.NET doesn't have control arrays like classic vb6.





I think you can simply create an array of type 'control'.





I code in c#, so the syntax might be wrong....





Dim myTextBoxArray As TextBox() = New TextBox() {20}





This will give you 20 text box's; you'll need to subscribe to any events you'd be interested in, and handle the events in one handler routine.





HTH,

No comments:

Post a Comment