Skip to main content

Microsoft Silverlight

Answered Question ActiveX controls loading in SilverlightRSS Feed

(0)

gsmlakshmi
gsmlakshmi

Member

Member

6 points

5 Posts

ActiveX controls loading in Silverlight

We've an activeX control, which is being used for a MFC based desktop application. This activeX control, takes care of the basic functionalities like, loading a model onto screen, panning, rotating, zooming etc., It uses OpenGL for these functionalities. Can this activeX control be loaded on to a web page that is developed using Silverlight. Does Silvelight support loading of custom activeX controls?

Alexander Manenko
Alexande...

Member

Member

436 points

189 Posts

Re: ActiveX controls loading in Silverlight

 Silverlight doesn't support ActiveX hosting.

Bill Reiss
Bill Reiss

Contributor

Contributor

4818 points

913 Posts

Silverlight MVP
Answered Question

Re: ActiveX controls loading in Silverlight

You would have to embed both your ActiveX control and the Silverlight application in the page, and communication if needed, would have to be marshaled through the page using Javascript to bridge between the two.


Bill Reiss, Coauthor of Hello! Silverlight 3
My blog (rss feed)

naveen0495
naveen0495

Member

Member

53 points

42 Posts

Re: ActiveX controls loading in Silverlight

 Hi

You can defenitely use ActiveX conrols in Silverlight-web applications.

You should know how to use it with html, then you can write the functions to run the Activex in either aspx or html page associated withSL project.

Now you can call javascript functions from the managed code.

HtmlPage.Window.Invoke("fnRecord", "paraString");

where  fnRecord is the fn name and  paraString is the para name.

Dont forget to mark as answer if it helped You.

Thanks and Regards

Naveen

pbromberg
pbromberg

Participant

Participant

1984 points

353 Posts

Answered Question

Re: ActiveX controls loading in Silverlight

naveen0495:
You can defenitely use ActiveX conrols in Silverlight-web applications

Not quite "in" Silverlight-web applications. As previously stated, you can host both a Silverlight plug-in app and an ActiveX control on an HTML  or ASPX Page and have the two communicate - but you cannot host ActiveX "in" or "inside" a Silverlight app.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities