Results 1 to 7 of 7

Thread: [2005] Control Arrays - a twist

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2006
    Location
    Chennai, INDIA
    Posts
    58

    Question [2005] Control Arrays - a twist

    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.
    Code:
    Dim fields As TextBox() = {Me.TextBox1, Me.TextBox2}
    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.

    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,
    Attached Images Attached Images  
    Last edited by vsugan_work; Jul 26th, 2006 at 05:16 AM.
    Sugan
    Chennai, INDIA.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width