Skip to main content
Home Forums Silverlight Design Designing with Silverlight ActiveX controls loading in Silverlight
4 replies. Latest Post by pbromberg on August 30, 2008.
(0)
gsmlakshmi
Member
6 points
5 Posts
08-29-2008 7:06 AM |
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?
Alexande...
436 points
189 Posts
08-29-2008 8:01 AM |
Silverlight doesn't support ActiveX hosting.
Bill Reiss
Contributor
4818 points
913 Posts
08-29-2008 8:48 AM |
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.
naveen0495
53 points
42 Posts
08-30-2008 6:36 AM |
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
Participant
1984 points
353 Posts
08-30-2008 1:06 PM |
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.