News for hackers. Stuff that matters.
Re:HTTP/3 is everywhere but nowhere by redeeman on Monday March 17, 2025 @05:17PM (#43392815)
except if you want to use for example system.windows.forms, then "oh well different teams maintain that, nobody made it for linux!!!" "the core is open!!!"

they clearly WANT applications written in .net not to be cross platform

Re:HTTP/3 is everywhere but nowhere by ziml77 on Monday March 17, 2025 @06:00PM (#43393153)
It's not about different teams, it's that System.Windows.Forms is exactly what the namespace says. It's Windows Forms. It's a fairly thin wrapper over the Windows API. It's never going to be adapted to be cross-platform and isn't really something they've put any development work into for many years at this point.

If you want a cross platform UI, use WPF with Avalonia. Or if you want something entirely from Microsoft themselves, there's MAUI as an option.

Re:HTTP/3 is everywhere but nowhere by lll-o-lll on Monday March 17, 2025 @06:28PM (#43393379)
JS is the only true cross-platform UI; sadly.
Re:HTTP/3 is everywhere but nowhere by LtWorf on Tuesday March 18, 2025 @01:52AM (#43396147)
You spelled qt wrong
Re:HTTP/3 is everywhere but nowhere by CharlieDigital on Tuesday March 18, 2025 @10:31AM (#43399898)
More accurately, HTML (+CSS)(+JS).

HTML is all you need for a cross platform UI.

Re:HTTP/3 is everywhere but nowhere by LtWorf on Tuesday March 18, 2025 @04:57PM (#43405019)
HTML is all you need for a very slow cross platform UI.

FTFY

Re:HTTP/3 is everywhere but nowhere by redeeman on Monday March 17, 2025 @07:52PM (#43394086)
obviously system.windows.forms could easily be implemented elsewhere, but okay, does any of the other UIs work fully properly on for example linux?
Re:HTTP/3 is everywhere but nowhere by redeeman on Tuesday March 18, 2025 @07:29AM (#43398176)
what ui library are most .net applications created in the business world today using? what is microsoft telling people to use?
Re:HTTP/3 is everywhere but nowhere by CharlieDigital on Tuesday March 18, 2025 @10:33AM (#43399927)
There's no such thing; it depends on the app that people are building, their use cases, and platforms.

Case in point: both Teams and VS Code: both web view wrappers.

Some trading shops are still using WPF and some are even using Windows Forms apps still.

Re:HTTP/3 is everywhere but nowhere by ziml77 on Tuesday March 18, 2025 @03:22PM (#43403773)
I'm amazed people are still using WinForms. When I was going around tables at a job fair in college, 13ish years ago, one of the questions for me from representatives for a large bank was about if I've used WPF. I said I don't use it, and they basically told me I should get with the times.
Re:HTTP/3 is everywhere but nowhere by int_19h on Monday March 17, 2025 @11:11PM (#43395390)
> obviously system.windows.forms could easily be implemented elsewhere

It can, but not easily. As OP has said, it is a wrapper around Win32, and not an opaque one - it literally has stuff like e.g. the Message struct with members like HWnd and LParam.

Mono did try at one point, but they kept hitting edge cases where this kind of stuff would break things. Eventually they gave up and just wrapped Wine. So, yes, if you really really want to run WinForms on Linux, Mono is where it's at. But ... why?

Re:HTTP/3 is everywhere but nowhere by redeeman on Tuesday March 18, 2025 @07:28AM (#43398170)
well maybe because there exists countless gui applications that uses it, and furthermore, if you say its crossplatform, you cant say that with a straight face unless you also support gui? fact of the matter is, microsoft was perfectly happy to preach their .net shit as cross platform to try extend into non-windows usage, except for gui stuff, as thats "for windows"
Re:HTTP/3 is everywhere but nowhere by int_19h on Tuesday March 18, 2025 @04:41PM (#43404807)
We are talking about WinForms specifically. If you want crossplatform GUI, then don't write it in WinForms - write it in Gtk#, or Avalonia, or Uno, or ...

Note that C++, Rust, Go all don't have any kind of standard GUI support out of the box at all.