I have a user control created in VB6.0. I am using this ocx in VC# or VB.NET
through interop. When this control is sent back to a VB6.0 function as object
and checked there with if TypeOf usrctl is Control, this returns false.
We need this to work as we heavily use interop in our production applications.
PS: I did the interop through aximp utility
> I have a user control created in VB6.0. I am using this ocx in VC# or VB.NET
> through interop. When this control is sent back to a VB6.0 function as object
> and checked there with if TypeOf usrctl is Control, this returns false.
Maybe you "send back" the AxHost wrapper instead of the control?
If you are not already doing so, pass "AxUsrctl1.GetOcx()".
Balaji - 03 Jul 2006 10:10 GMT
Hi,
Thanks for ur time. I tried this too and is not working

Signature
Balaji P
> > I have a user control created in VB6.0. I am using this ocx in VC# or VB.NET
> > through interop. When this control is sent back to a VB6.0 function as object
> > and checked there with if TypeOf usrctl is Control, this returns false.
>
> Maybe you "send back" the AxHost wrapper instead of the control?
> If you are not already doing so, pass "AxUsrctl1.GetOcx()".