CoderSource.net
Search
ActiveX interopebility problems
Started by puzzelic at 03-29-2006 11:41 AM. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
   03-29-2006, 11:41 AM
puzzelic is not online. Last active: 3/29/2006 4:34:33 PM puzzelic

Top 75 Posts
Joined on 03-28-2006
Posts 1
ActiveX interopebility problems

My C# program is referring a VB6.0-written ActiveX control, through the xHost wrapper (Through a hand-written class which inherits axHost, to be exact).

The problem is, the VB code "UserControl.Parent" (which relates to the parent of the control, hence to the C# code), expecting a Control, simply won't work.

I'm not even sure who that 'parent' is in C#. is it my written class? axHost? is it the form which contains them?

What to do?

 


   Report 
   03-29-2006, 3:28 PM
Yasir is not online. Last active: 11/16/2006 10:02:40 AM Yasir

Top 10 Posts
Joined on 03-15-2006
Posts 44
Re: ActiveX interopebility problems
Axhost Wraps activex controls and exposes them as fully featured windows forms controls. and this class have a property named parent is inherited from the Control.
so obviously userControl.parent is your form that contains that control.

   Report 
Codersource.Net » Programming » C# Programming » ActiveX interopebility problems

MENU
Home
MFC 
C++
.Net
WIN32
Programming
Forum
My Articles
Welcome to Codersource.Net Login | Register | Faq  

Google
 

NOTES:


Thanks for visiting our CoderSource.net. This site will be improved with more articles. Interested visitors can also submit their articles through the Submit Article link.Your article will also be published after due consideration by the editor. 

© Copyright 2003. All rights on content reserved by CoderSource.net. Contact    About Us