8

So I am doing some learning of C#. I wrote an https server in Python for a specific task. Now I want to convert it to C#. However, I do want it run as a server, but want some limited controls on it as a window. So I am looking at C# solutions for desktop applications. It seems to be a cluster of unsupported and bug ridden. I don't know if I should do: WinForms, WPA, or Maui.

I don't want to spend a lot of time learning a new gui system. I want stupid easy shit controls. I don't want to html anything.

So I guess I want something for C# that is stupid easy gui builder that barely runs. After reading reviews I just don't know what fits this bill yet.

At least my python server is running...

Comments
  • 2
    Why not just make it a web page?
  • 3
    @spongessuck

    "I don't want to html anything."
  • 1
    @retoor just checked with work. They are using WPF. I gotta learn it so wtf I guess.
  • 2
    Right now I am so tired I don't wanna do shit.
  • 3
    Watched 2 WPF videos. Seems easy enough to do easy interactions. Events are fairly straightforward and the xml shit isn't terrible. I remember using it before and not hating it.

    The next thing I gotta do is see if there is something as easy to use as Python's https stuff. I generated a key that will last 36,500 days. I hope it is enough. lol
  • 1
    This guy is a really good about showing how all the layout stuff works:

    https://youtube.com/watch/...
  • 1
    Winforms is to C# what gonorrhoea is to sex.
  • 2
    Put an llm in it and just type in the terminal what you want to change in English
  • 1
    window on a server? so a GUI to visualise a server?

    Just add a WinUI3 project to your solution, it can import the same C# services your backend is using (if u put them in their own Class Library at least)

    with simple XAML u can have an usable GUI in no time

    ANND if u didnt segregate the services into DLLs, then make your GUI make Http calls to your API, cud be local if ur server is local

    Or over IP if ur exposing it

    https://learn.microsoft.com/en-in/...
  • 3
    Yeah... that's why people use electron :P

    All desktop gui sucks. The only somewhat good things I have heard was for Qt and Flutter
  • 1
    @12bitfloat I was tired last night and just didn't want to think very much. I write Qt all the time with C++. I would probably do this with C++ if I didn't need to learn C# better. So I found that Qt actually has a way to use Qt with C#. Not going this route as we use WPF at work. But it was interesting to see it exists. I read that if Maui doesn't shape up Qt for C# might get more traction.
  • 3
    @Demolishun for Windows you are fucked. MS invents a new gui framework every 4 years or so. Just use MAUI and wipe your memory afterwards because it will be useless info after they replace it again.
  • 2
    @Lensflare yeah, I am wondering when shit will hit the fan at work...
  • 2
    @Lensflare the issue is we are using a third party solution for robotics. They swallowed the windows poison. We do all of the rest of our stuff on Linux. My big boss (CTO) hates windows.
  • 0
    @azuredivay I am wanting simple controls and a logging display. Maybe eventually I will put stuff in config and run headless.
  • 3
    @Demolishun Maui looks promising. A friend of mine used it and he was pretty happy with it

    But my big problem with these "flavor of the month" frameworks (awt, swing, javafx, maui, etcpp) is that they just never gain enough traction. They always end up as these kinda half finished, half featureful libraries that are just kinda disappointing
  • 0
    @retoor I'm not as young as you think!
  • 0
Add Comment