How to load System.Windows.Forms.dll in WPF RRS feed

  • Question

  • I try to use Forms function.

    But I can't load System.Windows.Forms.dll in my Solution Explorer References

    It will show like this in my References

    If I compile it will show error

    How to solve this error?

    • Edited by CY_Chen Monday, August 19, 2019 8:49 AM
    • Changed type CY_Chen Tuesday, August 20, 2019 3:11 AM
    Monday, August 19, 2019 8:48 AM

All replies

  • Hi    CY_Chen,

    Firstly, remove the DLL in the references. 

    Then, try to re-add the related dll using the following way.

    Besides, there is a simple way. You can  add the related dll  through Visual Studio's Intelligent Sensing Tips 

    Best regards

    Yong Lu

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Tuesday, August 20, 2019 8:16 AM