I posted this in another forum, but realized it wasn't the one I originally inteded to, sorry.
In other languages, I can edit the properties of objects at runtime with no problem. I'm sure there's a way to do this with vb.net but I've yet to find the syntax for what I'm looking for. So essentially, what I'm trying to do is this:
For dim inc = 0 to 10
["objectName" & inc].visible = true
next
This is simply an example of what I'm trying to do. Basically, I have a group of 10 objects with the name "objectName" in common, the only thing that differs, of course, are the numbers. Is there any way I can do this in vb? If it'd be possible, I could alter the properties of a button or whatever at runtime as long as I enter the buttons name in a text field or something like that. I'm trying to add a bit of dynamics (and optimized code) to my apps.
In other languages, I can edit the properties of objects at runtime with no problem. I'm sure there's a way to do this with vb.net but I've yet to find the syntax for what I'm looking for. So essentially, what I'm trying to do is this:
For dim inc = 0 to 10
["objectName" & inc].visible = true
next
This is simply an example of what I'm trying to do. Basically, I have a group of 10 objects with the name "objectName" in common, the only thing that differs, of course, are the numbers. Is there any way I can do this in vb? If it'd be possible, I could alter the properties of a button or whatever at runtime as long as I enter the buttons name in a text field or something like that. I'm trying to add a bit of dynamics (and optimized code) to my apps.