© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•9mo ago•
20 replies
noname7777

✅ Use WinForms in service worker project

VSCodium with Omnisharp
.NET 9

Why use a GUI library in a service?
To configure it.

I cannot figure out how to reference the
System.Windows.Forms.dll
System.Windows.Forms.dll
.
I have tried:
Putting
using System.Windows.Forms
using System.Windows.Forms
at the top of a file.
Putting
<UseWindowsForms>true</UseWindowsForms>
<UseWindowsForms>true</UseWindowsForms>
in my csproj file.

Every tutorial I could find assumed that the user was using Visual Studio, so they weren't much help.
I am aware that this is going to be difficult.

Any pointers would be greatly appreciated, thanks!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ WinForms Project Contribution
C#CC# / help
3y ago
Worker Service AzureClients
C#CC# / help
15mo ago
Trying to embed custom font in WinForms project
C#CC# / help
15mo ago
✅ errors in winforms
C#CC# / help
3y ago