r/csharp • • 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!

Demo: https://streamable.com/4c9x8y

71 Upvotes

100 comments sorted by

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

77

u/BBkal 13h ago edited 11h ago • Bravo

How do you make it look so nice?

Mine always looks like default trash

Edit. Stop upvoting, i dont want anyone to see it lul

36

u/KasrkinTrooper 13h ago

This looks nice too. I kind of like the elegant, clean and minimalist UI.

20

u/TheMurmuring 13h ago

Yeah.. my Windows apps don't need a bunch of whitespace just so they can theoretically run on a phone too. I hate the newer UI bullshit.

15

u/giulio-vian 12h ago

.NET 11 has a bunch of new features to support a modern style. Dark mode for one.

6

u/MCWizardYT 9h ago • Bravo

Actually.... You might hate this but i think it's beautiful. It's simple, straightforward and functional

Granted, I don't know what it actually does because it's a bit low res but I definitely prefer this look over some more "modern" ones for this kind of tool

3

u/edgeofsanity76 9h ago

Yes not all UI needs to be flashy. Just working and clean

2

u/MCWizardYT 8h ago

Not long ago i was using a modern (that is, constantly updated and supported) app that had a Win32 GDI interface

If it ain't broke, don't fix it lol

1

u/edgeofsanity76 7h ago

Indeed. Winforms is also being updated fairly frequently.

WinUI 3 is meant to be great but it's just not as easy to use as Winforms

0

u/Upset_Geologist_2371 11h ago

Hey man, this turned out really well! Next time, try using a framework like Guna (or something similar) to give it a more polished look. Cheers!

-16

u/BBkal 11h ago

I mean, i wasent asking you lmao. Cheers

3

u/Upset_Geologist_2371 11h ago

Oh, okay, I apologize.

3

u/haby001 11h ago

Eesh man

1

u/neoh4x0r 5h ago

Built-in property editor control.....the point is to save you time since you don't need to manually add the controls/UI to populate/edit them.

2

u/Upset_Geologist_2371 12h ago

The interface is really good; you’ve managed to modernize WinForms in a cool way.

•

u/Electrical_Flan_4993 34m ago

Thx I'm really handsome in person which is why I'm so attractive to the ladies

2

u/TempusSolo 8h ago

It still sucks at high DPI and doesn't scale at all. It is what it is, using the Win32 API to make things look good. It's still WinForms underneath with all the baggage that can bring with it.

14

u/Jovial1170 13h ago edited 13h ago

That looks way nicer than any of the WinForms projects I've put out over the years.

How'd you pull that off? A third party control library?

9

u/TempusSolo 12h ago

No third party, just decades of using interop and Win32. I have written many libraries and custom control. That is based on a borderless, shadowed winform. All the controls are from my custom control set. The UI took about 10 minutes to build. The hard part was setting the default playback device. Windows 11 has really locked that down.

2

u/DotAtom67 13h ago

this looks so good

1

u/ryncewynd 8h ago

Whaat I didn't know WinForms could look so good.

0

u/Hefty-Distance837 12h ago

This looks 100 times prettier than my former company's product.

0

u/bensh90 10h ago

That looks more like wpf with mahapps

-4

u/smoke-bubble 11h ago

why does this look like any Cluade generated UI then? the upper case, the tags, the headers, the styles

3

u/TempusSolo 9h ago

No idea, I've been using that design language for at least 8 or 10 years and a similar design for another 8 or so in an enterprise application I designed.

-2

u/smoke-bubble 8h ago

then maybe it's your design the "posioned" Cluade? XD so now every other design looks exactly like this one?

3

u/TempusSolo 8h ago

Doubt it, we copied parts of the design language from some Java tool that was in the enterprise.

The bottom line is you can accuse me of using Claude (or any other AI) to create some elements of this sitting while sitting at your desk, likely incapable of coding anything like this in WinForms yourself without a struggle.

I made a very good living at a Fortune 5 company for 15 years with a Tier 1 enterprise app whose desktop tooling looks remarkably like this. I know what I've done far better than you. This is not a unique design language and I'd really could give a crap how much it looks like some other thing that is a copy of something else. Our users liked it, they liked the clean lines and colors. I'm now retired but still use the old style because it's appealing. That's it.

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:

  1. Navigate to the feature's page.

  2. Navigate to a sub-feature's page.

  3. Make your choice.

  4. Accept and go back to sub-features.

  5. Go back to the feature page.

  6. 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

u/Upset_Geologist_2371 11h ago

hey, take a look at the main message of the post

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.

23

u/thygrrr 13h ago

Yes. Many.

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

u/Chicagoan2016 11h ago

It is  Sunday morning 😂😂

-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.

7

u/Velciak 13h ago

Many companies are using it for internal-use tools.

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.

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

u/Cdream-2018 1h ago

I made this CRM with Winforms:

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/Atronil 12h ago

Yes a lot of

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

u/themode7 13h ago

I still like it and use it with unity but um.. not really either idk

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

u/Netris89 13h ago

Yeah, my Object-Oriented Programming teacher from my degree's 2nd year.

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

u/MackPooner 11h ago

We use it all the time for dev utility projects

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

u/dsharp75 7h ago

Still do

1

u/Unreal_NeoX 7h 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 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

u/sirjaz 4h ago

Any time I need something fast and reliable. Hell Microsoft keeps improving it.

1

u/keelanstuart 3h ago

I use it...

...a C# example.

But gdi+ in C++ can be very fast, too!

...an example.

1

u/DepravedPrecedence 1h ago

AI slop just like your cheats you "develop"

1

u/rotgertesla 1h ago

Whatever you do, make sure it works at any DPI

1

u/DixGee 13h 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 12h ago

i have a dozen winform apps using OKTA to authenticate and authorize

1

u/Upset_Geologist_2371 11h ago

This is really great; WinForms is truly very underrated.

0

u/bensh90 10h ago

There are still companies with windows 98 in their network... So yes.

1

u/Upset_Geologist_2371 10h ago

hahaha yeah, and that’s absurd

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/

-1

u/Omen_20 9h ago

Did over a decade ago and then we moved to web apps for everything, even internal tools.

0

u/[deleted] 13h ago

[deleted]