I experinced some strange problems with my class, and found that it was caused by your function. If works great with a control array of command buttons, but dosn't work with a control array of winsock components. It's probably due to winsock not having the same properties as command buttons.
The following code have been tested with both command button and winsock control arrays and works... Hopefully it also works in my class!
Function IsControlLoaded(Ctrl As Object, iIndex As Integer) As Boolean
On Error GoTo ControlIsMissing
IsControlLoaded = True
If Ctrl(iIndex) Then End If
Exit Function
ControlIsMissing:
If Err.Number = 340 Then IsControlLoaded = False End Function