I have developed a custom control which is going to be used in a polling program to access different data streams. On my form I have 12 instances of this control each with a GetData method which connects to the data source. Also on the form I have a timer which triggers every second to loop through each control to poll the data.
In VB6 I would have done this as a control array so that when the timer triggers I would have an index which would be used to access each control.
<code>
Private Sub Timer1_Timer()
Index = Index + 1
MyControl(Index).GetData.
EndSub
</code>
Is there a way I can implement this functionallity in VB.Net?
Any help would be greatly appreciated.
-Ian
In VB6 I would have done this as a control array so that when the timer triggers I would have an index which would be used to access each control.
<code>
Private Sub Timer1_Timer()
Index = Index + 1
MyControl(Index).GetData.
EndSub
</code>
Is there a way I can implement this functionallity in VB.Net?
Any help would be greatly appreciated.
-Ian