Is it possible to reference WinForms from Win UI 3 project? #7757
-
The title says it all. I tried by adding So, is there a way to reference WinForms and use some of its classes in a WinUI 3 project? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Yes, by adding a reference to System.Windows.Forms.dll (+ other DLLs like System.Drawing.Common.dll or System.Resources.Extensions.dll, depending on what you need) |
Beta Was this translation helpful? Give feedback.
-
In my case, the project builds but as soon as i open page there references winforms .dll i get the following error. or |
Beta Was this translation helpful? Give feedback.
Yes, by adding a reference to System.Windows.Forms.dll (+ other DLLs like System.Drawing.Common.dll or System.Resources.Extensions.dll, depending on what you need)
(from C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App + version)