Hi, as the title says. Where can I learn about Windows Forms best practices, poatterns like MVP/MVC ETC.


The best practice with winforms is to use WPF.
But for a serious answer, the best practices for all UI tend to be the same.
Split logic from visual. The only code that you should have in the form’s class is code to make it display stuff the way you want. It should do zero logical operations. Create a Controller class to handle that. (See MVC pattern or MVVM without the WPF features)
Never wait for work on the main UI thread. Modern TPL with asyc/await makes this super easy. If you need to lock your UI while waiting for an action, do it yourself instead of literally waiting on the UI thread. And add a “spinner” or something to indicate the program isn’t frozen.
Don’t use windows forms.
I get the sentiment, but what would be an actually good alternative that will be supported long term?
You might write an application that will be maintained for decades, which UI framework is guaranteed to be supported in 2030?
2. Use something else.
came to write the exact same thing
I needt o use Windows Forms. It is the most blind-friendly UI framework on .NET
Can you provide a source for that information? I believe WPF is just as, if not more capable, for accessibility.
C# devs
null reference exceptions

source