CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2012
    Posts
    2

    unable to add System.windows.Forms dll into silverlight 4.0 project

    Hi Everyone,

    I cudnt find dll in this locationl(system.windows.forms) C:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0.

    So I tried to paste dll from location C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0

    and while adding dll into siverlight project by add reference Im getting the following error message,
    "you can't add a reference to system.windows.forms.fll as it was not built against the silverlight runtime.silverlight projects will only work with silverlight assemblies"

    So where to get dll for silverlight?

  2. #2
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210

    Re: unable to add System.windows.Forms dll into silverlight 4.0 project

    Silverlight is a different UI framework from Windows forms. You should use XAML to create your UI. Do you need a specific functionality in Windows Forms that is not available in Silverlight?
    Hesham A. Amin
    My blog , Articles


    <a rel=https://twitter.com/HeshamAmin" border="0" /> @HeshamAmin

  3. #3
    Join Date
    Mar 2012
    Posts
    2

    Re: unable to add System.windows.Forms dll into silverlight 4.0 project

    Hi ,

    There are 2 tree views used in my project,one being the source and the other, target. When I click on the source node it must go to the target tree view and have to find the parent and needs to be inserted.

    Do you have any idea how to achive above task?

  4. #4
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210

    Re: unable to add System.windows.Forms dll into silverlight 4.0 project

    You can check this
    Hesham A. Amin
    My blog , Articles


    <a rel=https://twitter.com/HeshamAmin" border="0" /> @HeshamAmin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured