What you're describing (control arrays) was a feature of Visual Basic, not a feature of ComponentWorks, Measurement Studio, or ActiveX controls. For more information about how this has changed between VB6 and VB.NET, see the following
MSDN articles:
If you're only interested in this for looping
, you can do this by creating an array variable and populating it when the form loads:
Public Class MyForm
Inherits System.Windows.Forms.Form
Private gauges() As Gauge
Protected Overrides Sub OnLoad(ByVal e as EventArgs)
gauges = New Gauge() {Gauge1, Gauge2, ... , Gauge9}
' Now use the gauges array for looping, etc.
End Sub
End Class
- Elton