Page view counter
ActiveX controls loading in Silverlight Subscribe to this thread
Last post 08-30-2008 1:06 PM by pbromberg. 4 replies.
Sort Posts:
08-29-2008 7:06 AM
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?

gsmlakshmi

Loading...
Joined on 08-27-2008
Posts 4
08-29-2008 8:01 AM
Re: ActiveX controls loading in Silverlight

 Silverlight doesn't support ActiveX hosting.

Alexander Manenko

Loading...
Joined on 08-12-2008
Kyiv
Posts 184
08-29-2008 8:48 AM
Marked as Answer
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 2
My blog (rss feed)

Bill Reiss

Loading...
Joined on 05-01-2007
Tampa, FL
Posts 894
08-30-2008 6:36 AM
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

naveen0495

Joined on 07-14-2008
Posts 41
08-30-2008 1:06 PM
Marked as Answer
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.

[C# MVP]
Unblog|WebSite|IttyUrl

pbromberg

Loading...
Joined on 06-25-2002
Orlando FL
Posts 282
Microsoft Communities