Results 1 to 2 of 2

Thread: [2005] Looping thru Textboxes

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    1

    Question [2005] Looping thru Textboxes

    I have 30 textboxes in my form. Their names are tb1, tb2, ... tb30

    I need to retrieve the values from those 30 textboxes.

    How can I use a loop to address those 30 textboxes names and values? Please help.
    Last edited by bubuk.bagrok; Nov 23rd, 2007 at 11:07 PM. Reason: subject not clear

  2. #2
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    413

    Re: [2005] Looping thru Textboxes

    You can put them into an array and access by x (ie arryTextbox(x) ).

    Or use jm's code here and use the .getType and .name to find your text boxes
    Visual Studio .NET 2005/.NET Framework 2.0

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