I just read a certain article about the control arrays of VB6 not present in VB.NET and rather, became a "collection" or something.... (http://visualbasic.about.com/od/usingvbnet/l/bldykctrlarraya.htm)
Now, I'm planning to learn VB.NET and accept it as whole new language.
So, as a "few steps" for me to migrate, here is my code from VB6:
Private Sub Command1_Click()
For i = 0 to 9
Command2(i).Caption = i
Next i
End Sub
Private Sub Command2_Click(Index as Integer)
Label1.Caption = Label1.Caption + Index
End Sub
I wonder if you get what my program is? Let's just say it's a certain number pad program. I'll explain what this program does, at least for now...
As you can see, I have 12... controls? (I'm sorry, I'm still a little bit new in terms of programming)... Yeh, 12 of them... 11 buttons and 1 Label. That 1 button, Command1, will give the captions of my other 10 buttons Command2(Index). And when Command2(Index) is pressed, Label1's current caption will be concatenated by Command2(Index)'s Index... (It's like a calculator, let's skip this now)
So, will you teach me a version/translation of this in VB.NET? :) Thanks!