C
C#5mo ago
Sleepy

✅ How do I add system.windows.forms?

I’m still really new to c# but it’s my understanding that I need to add system.windows.forms to visual studio before I can make use of it to add a button (my end goal). How do I add it to visual studio?
3 Replies
Buddy
Buddy5mo ago
And if you want to just enable Winforms, it's enabled in the csproj in .NET https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props-desktop#enable-net-desktop-sdk Specifically
<UseWindowsForms>true</UseWindowsForms>
<UseWindowsForms>true</UseWindowsForms>
Sleepy
SleepyOP5mo ago
Thank you!

Did you find this page helpful?