Developing a program
Hey everyone, I need help on developing a program. If you could help me, it would be greatful. Also, note that I'm not that good on C#.
21 Replies
$details
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code! (see $code for more information on how to paste your code)
oh yeah thanks š
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/https://paste.mod.gg/galwycfokdxt Here is the code for tha .xaml Window file
BlazeBin - galwycfokdxt
A tool for sharing your source code with the world!
Maybe start with actually describing your problem
So I'm making a GUI program that will make use of cmd programs
- What are you trying to do?
- What have you tried?
- What is the expected result?
Okay.
I can already recommend https://github.com/Tyrrrz/CliWrap then
its an excellent library for running cli tools programatically
Nice.
And also I need to show some info about the process
also give this a read, it will avoid future issues with your current UI $rulesofwpf
Ok
all these are bad
all this means you're using the designer to move things around and adding things generating unecessary margins that will make things not work the way u expect them to work
oh...
That's where the text info is going
Here goes problem number 2
It's about the list box
I need it to show the image when I select an option.
And the text will be changed too.
Thats usually handled with data bindings
oh nice
there really isn't much shortcut tbh, you need to learn how to use XAML and u need knowledge of the basics of c# to not fall prey of why this doesnt work type of issues.
for wpf xaml you can use https://wpf-tutorial.com/wpf-application/introduction/ it covers several topics including databinding, how to use a listbox, how to customize it.
in regards c# https://learn.microsoft.com/en-us/shows/csharp-fundamentals-for-absolute-beginners/ these are the main topics u need to know to not be so lost with things.
I'm gonna need a combination of both
Thank you, will give more updates when problems
I'm scrapping this.