You haven't mentioned if this is Windows or Web forms, neither have
you mentioned the framework version. Assuming Windows forms, the
following snippet might work :
for i = 1 to max
Dim ctlArray as Control = Form.Controls.Find("nameprefix" & loop
variable, true)(0)
next
On Oct 27, 9:39 pm, Shawn <[EMAIL PROTECTED]> wrote:
> I have a ton of text boxes to go through that have the names set up so
> that they can be run through using a simple loop as can be done with
> objects in VBA. ie:
> for i = 1 to max
> variable(i) = "nameprefix" & loop variable
> next
>
> I cannot figure out how to do this in VB and would really rather not
> run through them one by one.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/DotNetDevelopment
You may subscribe to group Feeds using a RSS Feed Reader to stay upto date
using following url
<a href="http://feeds.feedburner.com/DotNetDevelopment">
http://feeds.feedburner.com/DotNetDevelopment</a>
-~----------~----~----~----~------~----~------~--~---