Using WinForm and WPF in a solution RRS feed

  • Question

  • I want to make my program like following.

    Project A is a exe using WinForm.

    Project B is a dll using WPF.

    A calls B.

    Is this possible?

    • Moved by CoolDadTx Monday, December 2, 2019 6:37 PM WPF related
    Monday, December 2, 2019 3:03 PM

All replies

  • Can you? Yes. The question is why would you. If project A is Winforms then project B should probably be using Winforms as well. If project B is using WPF then you wouldn't likely need it for project A since it is Winforms. WPF and Winforms can interplay but there are things you have to work around as documented here. If you understand and accept these challenges then it can work. 

    Alternatively either rewrite project A to be WPF or project B to use Winforms and much of your issues will go away. But without any knowledge of either app there is no way for us to know what kinds of issues you'll run into.

    Michael Taylor

    Monday, December 2, 2019 6:37 PM
  • I have no idea if that works, but I'm assuming all the Microsoft DLL calls I've made for window functions are not in WPF. They work fine.

    George Frias - AWWshop, Wiki1978

    Monday, December 2, 2019 7:02 PM
  • Hi,

    I guess your DLL is a wpf control library,see the following link:

    Best Regards,


    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, December 3, 2019 2:26 AM