Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / July 2006

Tip: Looking for answers? Try searching our database.

VB ocx control interop not working

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Balaji - 03 Jul 2006 09:21 GMT
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

Signature

Balaji P

Christian Fröschlin - 03 Jul 2006 09:46 GMT
> 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()".

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.