Hi I'm new here, I didn't really knew where to post this so I posted it here. I don't want to rush in but...
I have a question about something I'm programming in VB.NET right now. I'm trying to make my code smaller. What I have to do is change the attributes of several labels or textboxes.
Like for instance I have this:
Label1.visible = false
Label2.visible = false
Label3.visible = false
...
Label23.visible = false
I want to make it so I only have a few lines of code:
dim intCount as integer
for intCount = 0 to 23
Label <intCount>.visible = false
next
that would make my code much better/smaller, and smaller means more synoptic. The intCount would just get replaced somehow, that's what I want...
Thanks
I have a question about something I'm programming in VB.NET right now. I'm trying to make my code smaller. What I have to do is change the attributes of several labels or textboxes.
Like for instance I have this:
Label1.visible = false
Label2.visible = false
Label3.visible = false
...
Label23.visible = false
I want to make it so I only have a few lines of code:
dim intCount as integer
for intCount = 0 to 23
Label <intCount>.visible = false
next
that would make my code much better/smaller, and smaller means more synoptic. The intCount would just get replaced somehow, that's what I want...
Thanks