vb.net control array
Posted on 2006-07-05
I am new to vb.net.
I had a vb6 app where there was a control array of text boxes and one of buttons.
When I typed something in the text box, and hit it's button something would happen.
For this exapmle we can assume that I am just trying to get a message box to show up with the text in the text box when I click on the button.
So clicking on button1 would have a message box with the text of text1.
This was easy because I could just use the index of the button click to figure out what text box to use.
How can I do this with .net without having a function for each button?
Or failing that, can you please explain what is going on?