If their number is specific we would do this
And do some stuffs on all of them at once.Code:Dim UC As UserControl1() = {UserControl11, UserControl12, UserControl13, UserControl14} For i As Integer = 1 To 4 UC(i - 1).Enabled = True Next
Now let's suppose UserControl1 would be added programmatically in a various uncertain number each time. Plus there is "For Each" sort of loop which could be make it easier. How can we use it? A proper way. How can we perform a similar thing here?
Note:
They're added in TableLayoutPanel if it helps.




Reply With Quote
