Jexs
What should i choose?
Im a beginner and im trying to make simple calculator should i go with WPF Application or Windows Form App when will i ever need to use either one in a certain situation like when will my boss ask me to choose a certain one and why?
14 replies
Please help me to understand this:
Hi i was wondering if i could get some feed back on this code:
using System;
namespace Pratice
{
class Example
{
public void DoSomething()
{
Console.WriteLine("do something with this object");
}
}
class ExampleUser
{
public void UseExample(Example example)
{
Console.WriteLine("this is an example");
}
}
}
public void UseExample(Example example)
{
Console.WriteLine("this is an example");
}
what is it called when we pass another method into another one should i just say "this code is accepting the the class Example as a method reference" what? idk the termnoigly i was wondering if someone could explainthis to me
like whats going on in this example
5 replies
Am I reading this right?
in this code :
for (int i =0; i < 5: i++)
{
Console.WriteLine(i);
}
So am i understanding this right?: First you have to declare statement 1 witch is int i = 0; once this is declared the complier execute the code block that contains Console.WriteLine(i); statement 2 defines the condition for executing the code block. statement 3 is executed everytime after the code block has been executed?
56 replies
❔ question about this article
In this article in the second paragraph
It says
“The single most important difference between WinForms and WPF is the fact that while WinForms is simply a layer on top of the standard Windows controls (e.g. a TextBox), WPF is built from scratch and doesn't rely on standard Windows controls in almost all situations. This might seem like a subtle difference, but it really isn't, which you will definitely notice if you have ever worked with a framework that depends on Win32/WinAPI.”
Are the controls the buttons you drag and drop onto the GUI screen ?
25 replies
❔ Moving from consoleapp to wpf?
hi im fairly new to programming and I want to take this code https://pastebin.com/F2cZ5Anb and place it in a program that has windows windows as in log in screen sign up screen and a system that holds username and passwords so i assume WPF would be the right choice but how would i go about placing this code in the correct areas? Whats a good source of info?
18 replies