❔ 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
are you asking about how to make GUIs, or how to publish applications?
yeah a GUI
well, generally
pick a GUI framework
read its documentation
then use it
so, just search up GUI framework and it will all be like laid out?
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
yeah ,its not going to be puclished or anything, just for my pc
would GUI programming for WPF be easy?
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
where can I find WPF, is it an app or...?
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
where do I install that, is it in VS or is it like the Telerik thing that pops up when I search for it?
it's installed through VS
the ".NET desktop development" workflow
can I find the option to install in the app?
Like where do I find it
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
can't find workflows option
it's the entire first page
sorry
"Workloads"
found it, thanks
I have net desktop developments
great
How do I use it?
the same way you use any other library code
you write code that uses it
and refer to documentation
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.
thank you
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.