r/csharp • u/Upset_Geologist_2371 • 6d ago
Does anyone still use C# WinForms?
I really want to know, because I’ve discovered a way to modernize WinForms that competes with ImGui, Avalonia, and WPF.
I've always enjoyed designing WinForms interfaces, but I've struggled with the performance and visual limitations of GDI+.
Over the past few days, I've been experimenting with a hybrid rendering approach using Direct3D 11, DirectComposition, and HLSL shaders.
So far, I've implemented:
- Hardware-accelerated panel transitions.
- Adaptive motion blur.
- Animated and stackable notifications.
- Custom loading controls.
- Compatibility with existing WinForms controls and the Designer.
This is a personal learning project developed with AI assistance. I'm not claiming to have invented a new technology or created a replacement for WPF, Avalonia, or ImGui.
My goal is simply to explore what WinForms is capable of and share the results with other developers.
I'm planning to publish an open-source library on GitHub.
Constructive feedback and technical suggestions are welcome!
153
u/TempusSolo 6d ago
I use the quite a bit for tools and utilities. They're incredibly fast to prototype with and once you write a few libraries you can reuse, things can even look pretty good. Here is an example
11
u/Slypenslyde 6d ago
I use it when I care more about having a finished thing than making it look like a web page or one of the 14 "modern" styles. Which is surprisingly more often than you would think.
I'm working on about the third generation of an application, it was WinForms then briefly WPF then moved to mobile. Someone posted a screenshot of the main UI from WinForms the other day and I gasped (I'd never actually used the WinForms version.)
It was ugly as sin, but EVERY feature of our app fit on one screen when 800x600 was a luxury. Our users are people who use this junk for 10+ years, so they get very used to things. It was like looking at the space shuttle cockpit.
In comparison to the modern app, any one 2-click action on the WinForms app requires:
6 user actions per configuration action compared to 2.
And there's no dang way we could achieve that economy on mobile because touch pretty much requires things to be a certain distance apart, let alone there's no way to keep the text legible.
A new user would be completely lost with the WinForms version and our current one is easier for new users to pick up because it explains more. However, expert users with the old one were much faster than new users but there's a "speed limit" in our app because everything takes so many extra actions.
Honestly I kind of hate modern UI for what we do.
8
u/MaximumHeresy 5d ago
WinForms is the GOAT.
3
u/Cdream-2018 6d ago
I made this CRM with Winforms:
3
u/tomxp411 5d ago
Absolutely yes. I still code in VS2010 for personal projects, because it's the last version of VS that still feels super responsive without being all bogged down with stuff I don't use. It's also still a performer, even on older systems with only 4GB RAM.
While I've been coding mostly in Python lately, I definitely like WinForms, and if there was a viable, hardware-accelerated framework, I'd definitely consider it for projects.
2
u/Hot_Amoeba_8305 6d ago
Indeed, what’s this ‘way’.
2
u/blocksaffinity 5d ago
This is so cool, keep going
3
u/NP_6666 6d ago
Yup. Whats that way to modernize? I'd love to hear more about your idea.
33
u/thygrrr 6d ago •
Yes. Many.
8
u/em_Farhan 5d ago
I still develop apps using winforms for my client.
19
u/Pappkarton 6d ago
Winforms is the easiest way to create a small tool that requires a simple and lightweight UI, so I use it a lot. For example, a simple "user needs to convert an Excel to PDF" tool. Yes, that is a real use case.
For more complex stuff, MAUI Blazor Hybrid is my go-to.
1
u/Upset_Geologist_2371 6d ago
Well, I didn't expect so many responses! I’ve found several ways to make WinForms look more "acceptable." I’m planning to set up a GitHub repository and record YouTube videos to share this knowledge—here’s an example. Please ignore the specific purpose of the interface; it’s just a personal project! Check out the video at this link:
https://streamable.com/4c9x8y
5
u/umlcat 6d ago edited 6d ago
Yes, in some scenarios.
I have worked with boith Desktop Programming and Web Programming.
WinForms is a very basic, but useful approach to Desktop programming. Also, for learning.
Sometimes, web applications is not the best case, like Point Of Sale cases.
I have customer ( companies ) that use both Desktop and Web interfaces that share some data access or logic code and also share databases or web services, becuase sometimes one interface works better than another.
WPF and other frameworks are useful, but work as an extension of Winforms. Again, it depends also on what you are doing, and what the requeriments of the customer ( company ) are.
I wish we had a more stable and official WinForm equivalent for C# or Java in Linux / BSD ...
9
u/Velciak 6d ago
Many companies are using it for internal-use tools.
2
u/Pretend_Fly_5573 6d ago
You "discovered a way to modernize" it?
For some reason my gut tells me there was a lot of heavy lifting by AI, and the end result is nothing particularly novel, or useful.
The extensive use of vague-posting increases those suspicions, too.
12
u/CLEcoder4life 6d ago
Lots of legacy apps and internal apps still use winforms because its simple and rapid. Id say itll be less and less tho moving forward with AI probably able to produce internal stuff way faster.
2
u/HandshakeOfCO 6d ago
lol OP thinks he has some genius idea and is looking for some cheap market research / signal that he should build whatever bullshit is in his head, but won’t say what his idea is because it’s too valuable
How’s the 8th grade so far this year, OP?
1
u/Random_Chef_Invester 6d ago
Hey, im in the middle of our first Examensproject, and we are to make our UIL in winforms.
As such i don't have any problem with the look, i only feel the restrictions on that i cant make a winform open in another winform is annoying. With the classic winforms i would need to design them all ontoo of eachother and use visibility change, or at least that is what my reasech has come to so far.
But maybe one of you could enlighten me, I would love to make something that will be wow, to the extent of a first semester in ap computer sciences that is. :)
1
u/mika 4d ago
Sure. Winforms is awesome!
1
u/lilacomets 4d ago
Yes, but the lack of dark mode is frustrating.
3
u/rotgertesla 6d ago
Whatever you do, make sure it works at any DPI
3
u/shitposts_over_9000 6d ago
use it, hell we still ship it
fastest speed on the least hardware and Microsoft has still never fully replaced the feature set with any of their aborted attempts at full replacement over the years
the lack of direct* anything dependencies is a feature not a flaw
3
u/beer0clock 5d ago
I use it for utilities and tools that only me and other developers will use.
If its for anything public facing, usually have to use something more modern. Although the choices all seem to suck, and there are so many choices.
WinForms is ridiculously fast to build with.
3
u/mordack550 5d ago
We use DevExpress WinForm controls in my company and that alone is why we are still using it. The controls feels good and modern, the customers are happy, win-win
1
u/Flimsy-Donut8718 6d ago
i have a dozen winform apps using OKTA to authenticate and authorize
1
u/Fresh_Acanthaceae_94 6d ago
There has already been multiple old and new open source projects that enable better WinForms experience, cross platform and with GPU, such as LibreWinForms. So, welcome to the arena.
4
u/KasrkinTrooper 6d ago
Everyday as UI in my ERP extensions. It requires no dependencies or framework, it's readable despite it looks kind of, I don't know, raw? However in ERP env I put clean, transparent and minimalist UI over artistic design.
The code isn't well though. You have to manually write many things which new frameworks cover out of the box.
2
u/Top_Requirement2237 6d ago
We use it quite heavily with devexpress.
I would tell it's not ideal, but we put around 50 man years of developer work and a decent amount was the Ui.
Would like to switch to something more modern, but it pays the bills very well
2
u/Excellent-Morning509 6d ago
We use it, but only for large legacy projects, that are not feasible to be re-implemented din something else.
Never for new projects, obviously.
2
u/ManIkWeet 6d ago
Setting dpi scaling through winforms api was the easiest way to fix wpf dpi scaling for each monitor, so technically we use winforms for at least that!
2
u/keelanstuart 6d ago
I use it...
...a C# example.
But gdi+ in C++ can be very fast, too!
...an example.
2
u/Atronil 6d ago
Yes a lot of
2
u/alala2010he 6d ago
I'm using it right now because it just works and I don't need anything fancier (in fact I'm making it to move away from FanControl which had some UI update making the tray menu very laggy).
1
u/Hot_Amoeba_8305 6d ago
Yep
1
u/themode7 6d ago
I still like it and use it with unity but um.. not really either idk
1
u/mwin8 6d ago
I can recommend eto-forms for Cross-Plattform development.
1
u/pyeri 6d ago
Not for any greenfield projects. Some clients still use ancient WinForms based MIS systems and most are in no mood to upgrade as they're happy with it. Yet, there are occasional hiccups like a Crystal Reports configuration breaking after a Windows update or the firm modernizing with a CCNA or Zero Trust firewall which requires cutting edge TLS implementation. With enough of these incidents, they get convinced on the futility of staying on ancient dotnet and upgrading to a web based stack.
1
u/Netris89 6d ago
Yeah, my Object-Oriented Programming teacher from my degree's 2nd year.
1
u/afops 6d ago
I still use it every day but don’t make anything new in it. If it’s new then it’s Avalonia or WPF.
Even for legacy winforms apps I some times add newer parts (dialogs) using wpf
1
u/SchlitterbahnRail 6d ago
I just created in-house monitoring tool with devexpress, because there are no other UI technologies (except some web) in the whole codebase. So no point using anything else.
1
u/MackPooner 6d ago
We use it all the time for dev utility projects
1
u/midri 6d ago
No, I got so frustrated with it and other UI frameworks I created this... https://github.com/riddlemd/Riftway which yes it's a bit heavy (it's a c# version of electron), but it lets you use blazor hybrid to design all your interfaces.
1
u/dsharp75 6d ago
Still do
1
u/Unreal_NeoX 6d ago
TBH, i personaly prefer clean and snappy design and data display, then anything fancy.
Also WinForms can hold up quite well if you have a "design and color pattern" that fits its purpose.
Example (not meant as ad, but i have nothing quick saved right now):
Example on the left side.
1
u/sirjaz 6d ago
Any time I need something fast and reliable. Hell Microsoft keeps improving it.
1
u/HamsterWoods 6d ago
Yup!
1
u/MrLyttleG 5d ago
I have made a pure Win32 API layer, direct use of API and DPI dynamic recalc
1
u/bapirey191 4d ago
"This video isn't available anymore"
1
u/ajsbajs 4d ago
You or Claude? People don't reinvent the wheel these days, especially when the team behind winforms are professionals.
1
u/06Hexagram 3d ago
Aye. Never learned wpf and now I feel it is too late for the mess of MAUI or winUI or whatever Microsoft tries next.
1
u/Zachattackrandom 3d ago
Nah. Though that's mainly because I like to develop for cross-platform
1
u/AdPitiful5902 2d ago
Yeah sure. I still have a few legacy projects and but also some new one. Those are all for industry environment where fancy interface design is not important 😁😁
1
u/antron420smokeallday 3h ago
Just one week after I wiped my windows machine, and installed Linux, my C# professor assigned a windows forms project. I’ve opted to do it with Avalonia 😭
1
u/gameplayer55055 6d ago
I still use it when I need an app for personal use only.
By the way, if you like visual editors you may like https://xaml.io
And if you like the code-only approach for quick prototypes/vibe coding you may also like using Avalonia without XAML https://www.reddit.com/r/dotnet/comments/1t4uera/avalonia_app_in_one_file_no_xaml_no_csproj_just/
1
u/DixGee 6d ago
I used to work on a product for wealth management firms. We used winforms for developing the desktop app used by them. They have no intention of modernising it from what I had seen.
0
u/FragmentedHeap 6d ago edited 6d ago
Not me, I built a whole new ui framework from scratch in rust with csharp bindings and made my own winit/webgpu desktop app framework from scratch. And its cross platform.
I dont do or touch anything that isn't cross platform, thats rule 1.
My engine has a custom text rebdering engine using mtsdf called encre, and my layout engine uses taffy and is called origami and it uses a css engine with custom element framework. It has a virtual dom like html, but isnt a browser. And the entire desktop app made on it is about 70 mb.
I have AI, why would I want to build on winforms when I can go all the way down?
My stuff runs on native webgpu, or vulkan.
-1
u/bensh90 6d ago
There are still companies with windows 98 in their network... So yes.
-2
u/Omen_20 6d ago
Did over a decade ago and then we moved to web apps for everything, even internal tools.
0
u/[deleted] 6d ago
[deleted] — view deleted comment
0
u/[deleted] 6d ago
[removed] — view removed comment