C
C#2y ago
Ethan

❔ Putting code into a UI

How do you put a C# code into like an application or make one so I can run it off a click of a button instead of off visual studio? I have this Packet manipulation code that I did not write but want to use it. (Not publishing it) UI would just be for my PC
24 Replies
JakenVeina
JakenVeina2y ago
are you asking about how to make GUIs, or how to publish applications?
Ethan
EthanOP2y ago
yeah a GUI
JakenVeina
JakenVeina2y ago
well, generally pick a GUI framework read its documentation then use it
Ethan
EthanOP2y ago
so, just search up GUI framework and it will all be like laid out?
JakenVeina
JakenVeina2y ago
yes and no like let's not trivialize GUI frameworks GUI programming is HARD but otherwise, yes if you're just wanting something for yourself, to run on your Desktop, on Windows, use WPF
Ethan
EthanOP2y ago
yeah ,its not going to be puclished or anything, just for my pc would GUI programming for WPF be easy?
JakenVeina
JakenVeina2y ago
relatively like I said, GUI programming is just fundamentally hard, no matter what you're using WPF is plenty mature to give you lots of learning resources and tooling
Ethan
EthanOP2y ago
where can I find WPF, is it an app or...?
JakenVeina
JakenVeina2y ago
and it's a decent representation of where best-practices are for Desktop programming, in general WPF is a framework like .NET or ASP.NET Core you need the SDK in order to develop for it which Visual Studio will provide make sure you have the ".NET desktop development" workflow installed
Ethan
EthanOP2y ago
where do I install that, is it in VS or is it like the Telerik thing that pops up when I search for it?
JakenVeina
JakenVeina2y ago
it's installed through VS the ".NET desktop development" workflow
Ethan
EthanOP2y ago
can I find the option to install in the app? Like where do I find it
JakenVeina
JakenVeina2y ago
in the installer when you install Visual Studio or modify an existing installation you pick the "Workflows" and "Components" that you want to install with it
Ethan
EthanOP2y ago
can't find workflows option
JakenVeina
JakenVeina2y ago
it's the entire first page sorry "Workloads"
Ethan
EthanOP2y ago
found it, thanks
JakenVeina
JakenVeina2y ago
Ethan
EthanOP2y ago
I have net desktop developments
JakenVeina
JakenVeina2y ago
great
Ethan
EthanOP2y ago
How do I use it?
JakenVeina
JakenVeina2y ago
the same way you use any other library code you write code that uses it and refer to documentation
JakenVeina
JakenVeina2y ago
Hello World app with WPF in C# - Visual Studio (Windows)
Create a simple Windows Desktop .NET app in C# with Visual Studio using the Windows Presentation Foundation (WPF) UI framework.
Ethan
EthanOP2y ago
thank you
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server