I was using the following code into an ActiveX UserControl in VB5.
But it returns me an error in an ActiveX UserControl in VB.Code:Dim Ctl As Control
On Error Resume Next
For Each Ctl In ParentControls
If TypeOf Ctl Is UC Then
If Ctl.Name = UserControl.Ambient.Name Then
Combo1.AddItem Ctl.Name & " - " & Ctl.Index
End If
End If
Next
Compile Error
Expected user-defined type, not project
What's happening? My installed help files and the original disk are damaged.
Thanks!
[This message has been edited by Tonatiuh (edited 12-07-1999).]
