Hi all,
I went through the control arrays threads in this forum to find a solution for control arrays in the VB project i converted from VB 6.0 to VB 2005.
I Created a sample application to understand the Control Arrays. I had two buttons and two text boxes. I want to group the text boxes alone in to a array.
When i used the above declaration with in a function it worked perfectly. But when i moved to this declaration to the general declaration of the form, it throwed a error. I've attached the screen shot of the error.Code:Dim fields As TextBox() = {Me.TextBox1, Me.TextBox2}
So is there a way to declare this grouping in the form declaration, instead of doing it in each and every function in the form.
Pls help in this regard.
Thanks,




Reply With Quote