HighTechTalks DotNet Forums  

Accessing .Net parent ctrl from interopped AxCtrl in VB6 ?

ASP.net Mobile microsoft.public.dotnet.framework.aspnet.mobile


Discuss Accessing .Net parent ctrl from interopped AxCtrl in VB6 ? in the ASP.net Mobile forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
balg
 
Posts: n/a

Default Accessing .Net parent ctrl from interopped AxCtrl in VB6 ? - 11-18-2004 , 02:08 AM






I have a client control in VB6 and I have a .Net container application which
hosts that control.

The .Net container control implements a certain interface which is in a
separate .Net (interface-only) project, which is referenced (ccw) by VB6
control.
(i.e, this interface project is referenced both in vb6 and .net )

Now from VB6 i need to get this interface, (In Container-In-VB6 scenario,
usually it will be by "UserControl.Parent" and assign it to that interface.)

But ContainerInDotnet scenario, UserControl.Parent ( in VB6 control )
returns nothing !

Is there any Direct way of getting a .Net parent thru' a common interface in
the VB6 world (I don't want the .net container control itself, but only the
interface which it implements ) ?

PS : I've tried raising event from VB6 with a byref param, so .Net captures
that event and sends back the container interface. it works but is there any
direct way ?

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.