locked
Can't add a reference to System.Windows.Forms.dll RRS feed

  • Question

  • When I attempt to add interactivity to a Multi Scale Image created using a Deep Zoom Composer, I get the following error message: "You can't add a reference to System.Windows.Forms.dll as it was not built against the Silverlight runtime. Silverlight projects will only work with Silverlight assemblies." I believe Silverlight only uses a subset of the .Net Framework. To use other libraries I'll need to recompile it's sources against Silverlight. How do I do that? Note: The System.Windows.Forms.dll Product version number is 2.0.50727.1433 P.S: I am a beginner and would very much appreciate a detailed simplified step by step approach to overcoming this challenge. Thanks
    Tuesday, February 9, 2010 6:53 PM

Answers

  • This is not possible in Silverlight 3 or previous versions. But with SL4's COM Automation support, this can be somewhat accomplished using this hack:

    http://jmorrill.hjtcentral.com/Home/tabid/428/EntryId/442/Silverlight-4-Hack-Use-Native-Desktop-CLR-Without-COM-Registration.aspx
    Tuesday, February 9, 2010 9:12 PM

All replies

  • This is not possible in Silverlight 3 or previous versions. But with SL4's COM Automation support, this can be somewhat accomplished using this hack:

    http://jmorrill.hjtcentral.com/Home/tabid/428/EntryId/442/Silverlight-4-Hack-Use-Native-Desktop-CLR-Without-COM-Registration.aspx
    Tuesday, February 9, 2010 9:11 PM
  • This is not possible in Silverlight 3 or previous versions. But with SL4's COM Automation support, this can be somewhat accomplished using this hack:

    http://jmorrill.hjtcentral.com/Home/tabid/428/EntryId/442/Silverlight-4-Hack-Use-Native-Desktop-CLR-Without-COM-Registration.aspx
    Tuesday, February 9, 2010 9:12 PM
  • Thank you for the information.
    Wednesday, February 10, 2010 1:44 PM