control array in VB.net
-
As control array is no more supported in VB.NET ,but i have more than 100 textboxes in my form ,I want to access those with help of index in a loop ,as shown below for i=0 to n txtName(i).text=i.tostring next How it is possible please help me with source code.
-
As control array is no more supported in VB.NET ,but i have more than 100 textboxes in my form ,I want to access those with help of index in a loop ,as shown below for i=0 to n txtName(i).text=i.tostring next How it is possible please help me with source code.
Hi, Why so many textboxes??? Isn't it a bit hard to with for the end user??? If you open your controlbox window you can find a wrapper for control array's Go to your customize Toolbox window. Then select the tab ".NET Framework Components" Find the component "TextBoxArray" that's the compatibility component for the control array. but why not redesign your application to use less textboxes or assign the same eventhandler to one event and check on the "sender" variable. greets, Poolbeer
Speak Out! Use the Source, Luke! (Dr. GUI .NET #5)