r/csharp • u/Upset_Geologist_2371 • 11h 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!
102
u/TempusSolo 11h 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
3
u/Slypenslyde 8h 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.
2
u/Hot_Amoeba_8305 11h ago
Indeed, what’s this ‘way’.
3
u/NP_6666 11h ago
Yup. Whats that way to modernize? I'd love to hear more about your idea.
23
u/thygrrr 11h ago
Yes. Many.
1
u/Upset_Geologist_2371 9h 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
2
u/Pretend_Fly_5573 7h 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 11h 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.
12
u/Pappkarton 11h 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.
2
u/HandshakeOfCO 10h 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?
7
u/Velciak 11h ago
Many companies are using it for internal-use tools.
1
u/Random_Chef_Invester 5h 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. :)
3
u/umlcat 3h ago edited 3h 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 ...
1
u/Fresh_Acanthaceae_94 7h 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 11h 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/Atronil 9h ago
Yes a lot of
2
u/alala2010he 9h 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 11h ago
Yep
1
u/themode7 11h ago
I still like it and use it with unity but um.. not really either idk
1
u/mwin8 11h ago
I can recommend eto-forms for Cross-Plattform development.
1
u/pyeri 11h 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 11h ago
Yeah, my Object-Oriented Programming teacher from my degree's 2nd year.
1
u/afops 11h 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 10h 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/CinchApps 9h ago
Yeah I still use it. Interestingly, I had just assumed they left this in the dust, but I could actually upgrade this to .NET Core, I thought they had abandoned it.
1
u/MackPooner 8h ago
We use it all the time for dev utility projects
1
u/midri 7h 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/FragmentedHeap 6h ago edited 6h 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/Top_Requirement2237 5h 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
1
u/dsharp75 5h ago
Still do
1
u/Unreal_NeoX 5h 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/Excellent-Morning509 3h 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.
1
u/ManIkWeet 2h 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!
1
u/sirjaz 2h ago
Any time I need something fast and reliable. Hell Microsoft keeps improving it.
•
u/keelanstuart 57m ago
I use it...
...a C# example.
But gdi+ in C++ can be very fast, too!
...an example.
•
u/HamsterWoods 28m ago
Yup!
1
u/DixGee 11h 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/Flimsy-Donut8718 10h ago
i have a dozen winform apps using OKTA to authenticate and authorize
0
u/bensh90 7h ago
There are still companies with windows 98 in their network... So yes.
0
u/gameplayer55055 11h 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/
0
u/Omen_20 6h ago
Did over a decade ago and then we moved to web apps for everything, even internal tools.
0
u/[deleted] 10h ago
[deleted] — view deleted comment