Hi Folks,
Simple question (to all but me I'm sure). I am trying to point to an instance of and ActiveX control using a string, but for obvious reasons it will not work...
For n As Integer = 1 To 13
Try
AxIndigoViewer1.StartVideo("192.168.8.126", 0, 0, 2)
Catch ex As Exception
MessageBox.Show("Nope on cam number " & n)
MsgBox(ex.ToString)
End Try
Try
AxIndigoViewer2.StartVideo("192.168.8.127", 0, 0, 2)
Catch ex As Exception
MessageBox.Show("Nope on cam number " & n)
MsgBox(ex.ToString)
End Try
So instead of the AxIndigoViewer1 I want "AxIndigoViewer" & n
Any thoughts?
Thanks,
blg
Simple question (to all but me I'm sure). I am trying to point to an instance of and ActiveX control using a string, but for obvious reasons it will not work...
For n As Integer = 1 To 13
Try
AxIndigoViewer1.StartVideo("192.168.8.126", 0, 0, 2)
Catch ex As Exception
MessageBox.Show("Nope on cam number " & n)
MsgBox(ex.ToString)
End Try
Try
AxIndigoViewer2.StartVideo("192.168.8.127", 0, 0, 2)
Catch ex As Exception
MessageBox.Show("Nope on cam number " & n)
MsgBox(ex.ToString)
End Try
So instead of the AxIndigoViewer1 I want "AxIndigoViewer" & n
Any thoughts?
Thanks,
blg