Forum Discussion

Ravik's avatar
Ravik
Super Contributor
12 years ago

Get all Text box from the form

Hi, In our application we have a form that is contain 10 text Boxes. I want to take all text boxes and using loop I want to be insert different values. How we can do this. Please help us. ...
  • dganov's avatar
    12 years ago
    I think you should use Child method - something like this:



    var v = 0;

    for (var i = 0; i < form.ChildCount; i++)

    {

      if (form.Child(i).Name == "TextBox")

      {

        form.Child(i).wText = valueArray;

        v++;

      }

    }