Ravik
12 years agoSuper Contributor
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.
Thanks
Ravik
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.
Thanks
Ravik
- 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++;
}
}