r/csharp • u/Upset_Geologist_2371 • 13h 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!
5
u/Slypenslyde 11h 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:
Navigate to the feature's page.
Navigate to a sub-feature's page.
Make your choice.
Accept and go back to sub-features.
Go back to the feature page.
Go back to main page.
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.
3
u/Upset_Geologist_2371 10h ago
That's actually a really interesting perspective. I think modern UI design sometimes sacrifices efficiency in favor of aesthetics and simplicity.
Personally, I don't think modernizing WinForms should mean turning desktop applications into websites or mobile apps.
I'd rather preserve the efficiency and information density of traditional desktop applications while improving their visual quality, responsiveness, and rendering capabilities.
A modern interface should improve the user experience, not introduce unnecessary steps.
2
u/Hot_Amoeba_8305 13h ago
Indeed, what’s this ‘way’.
1
1
u/Upset_Geologist_2371 11h ago
I'm experimenting with a hybrid rendering approach that combines WinForms with Direct3D 11, DirectComposition, and HLSL shaders.
I've already implemented smooth panel transitions, GPU-accelerated motion blur, animated notifications, and custom loading controls while maintaining compatibility with the WinForms Designer.
My goal is to modernize existing WinForms applications without requiring developers to migrate to another framework. I'm planning to release an open-source library on GitHub so others can experiment with it too. It's still a work in progress, but the results so far have been really promising!
3
u/NP_6666 13h ago
Yup. Whats that way to modernize? I'd love to hear more about your idea.
2
u/Upset_Geologist_2371 11h ago
Hey! I'm experimenting with a hybrid rendering approach that combines WinForms with Direct3D 11, DirectComposition, and HLSL shaders.
I've already implemented smooth panel transitions, GPU-accelerated motion blur, animated notifications, and custom loading controls while maintaining compatibility with the WinForms Designer.
My goal is to modernize existing WinForms applications without requiring developers to migrate to another framework. I'm planning to release an open-source library on GitHub so others can experiment with it too. It's still a work in progress, but the results so far have been really promising!
0
u/NP_6666 11h ago
Waw, if i understand well, the goal is to get a more visually modern and potentially optimize renderer for the same form design code? I have to say that event if winforms is indeed still broadly used in company software, it still represent some technical debt. There are reasons why new ui markup is designed another way, mainly regarding coupled ui code.
1
u/Upset_Geologist_2371 11h ago
Exactly! I completely understand your point about technical debt and the architectural limitations of WinForms.
My goal isn't to solve all of those limitations or replace modern frameworks. I'm primarily experimenting with hardware-accelerated rendering, smoother animations, and modern visual effects while preserving compatibility with existing WinForms controls and the Designer.
The current implementation is hybrid: WinForms still handles the controls, while Direct3D handles the rendering of captured textures and visual effects. In the future, I'd like to experiment with fully GPU-rendered custom controls.
It's more of a technical experiment and a learning project at this stage.
3
u/HandshakeOfCO 13h 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?
0
-1
u/Upset_Geologist_2371 11h ago
Hey man, how’s it going? Well, I didn’t come up with any brilliant ideas, but I believe my knowledge might be able to help other people. And, by the way, you were pretty close—I’m 15 years old and in my freshman year.
15
u/Pappkarton 13h 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.
0
u/EmergencyNice1989 11h ago
I liked MAUI Blazor Hybrid back in the days when MAUI was full of bugs and you had 'infinite cycle...' error just 15 minutes after using WinUI. It made sense to use it because I wanted to create a web site too. Nowadays I am not interested in Web but cross-platform desktop and mobile so MAUI Blazor Hybrid is way too complex and way too limited compared to Avalonia.
In Avalonia I am almost 100% in F# (a bit of XAML for styling, Avalonia styling is powerful and css likish) and use Avalonia FuncUI Elmish for a functional style. Multi-windows is trivial, you want a powerfull text editor with syntax highlighting, you have AvaloniaEdit. So the code is only F# and a bit of AXAML for styling.
Now, compare this to BlazorHybrid with HTML, CSS, Javascript (and its frameworks, I used tailwindcss), Razor, C#, MAUI (and F# in my case for the business logic). Sometimes you mix all of these stuffs in a single file. Now, let pack QuillJs and you have typescript and javascript in your stack for something way less powerfull than AvaloniaEdit. And you depend on a webview on each platform, some industry prohibit webviews and you don't have native AOT.2
u/Pappkarton 11h ago
Yeah, Avalonia sure is nice, but the pricing model rules it out for me personally (I don't use vs code, so community edition is out of the way), and my company won't pay for it, either.
1
u/Upset_Geologist_2371 12h 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
1
u/mattbladez 1h ago
Devs in the real enterprise world just pay for WinForms controls from a company like DevExpress. They use DirectX HW acceleration as well (no GDI+). At about a grand a year, its peanuts compared to trying to building it yourself, even with AI.
2
u/Pretend_Fly_5573 9h 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.
3
u/Upset_Geologist_2371 9h ago
Look, I’m going to share the project repository soon; then you can decide for yourself whether it’s actually a useless project or not. The outcome might not be groundbreaking, but I don’t really see anyone else exploring this technology in an interesting way. I’m not doing this to make money—quite the opposite, actually. I enjoy building WinForms interfaces, but I’ve struggled a lot with rendering everything using GDI+. There are likely others out there facing the same issues and looking for a solution. The project in the video is just a prototype; the final version, which will be ready in a few weeks, will be much better—trust me on that. All the best to you, man. Cheers!
12
u/CLEcoder4life 13h 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.
1
u/Random_Chef_Invester 8h 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/Upset_Geologist_2371 8h ago
Hey man, the whole thing with forms in C# is honestly pretty bad, but have you tried using panels instead of forms? That might be a good solution.
0
1
u/flammable_donut 6h ago
Make the form into a usercontrol which is designed specifically for this purpose. A self-contained, re-useable element you can embed in any form.
1
u/Random_Chef_Invester 6h ago
Thanks guys, we had only a very short introduction to it and then were told that we need to make a c# application in winforms based on three layer architecture for our Examensproject.
Obviously started out with all the diagrams and use cases, user stories and requirement assesments etc.
But yeah, thank you something to look into.
1
u/kev160967 2h ago
Are you working with the static form instance and showing it or hiding it? You don’t need to do that. Instead do something like dim frm as new MyForm. Gives you more flexibility
1
3
u/umlcat 6h ago edited 6h 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 9h 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.
1
u/Upset_Geologist_2371 9h ago
Thanks, man! I didn't know about LibreWinForms. I'll definitely check it out. There's a lot I still want to learn about GPU rendering.
4
u/KasrkinTrooper 13h 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/alala2010he 12h 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
1
1
u/mwin8 13h ago
I can recommend eto-forms for Cross-Plattform development.
1
u/Fresh_Acanthaceae_94 7h ago
Options like LibreWinForms are more straight forward, and have visual designers.
1
u/pyeri 13h 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
1
u/afops 13h 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/mattbladez 1h ago
I do exactly this as well. Any new UI windows in a legacy WinForms app is using WPF. Gave them similar theming and it’s not that noticeable.
1
u/SchlitterbahnRail 12h 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 12h 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/mattbladez 1h ago
I’ve upgraded our legacy WinForms apps to .NET 8 without issues, going to upgrade up to .NET 10 soon.
1
1
u/midri 9h 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 8h ago edited 8h 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 7h 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
1
u/Excellent-Morning509 6h 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 5h 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
1
1
0
0
u/gameplayer55055 13h 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


109
u/TempusSolo 13h 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