Jexs
Jexs
CC#
Created by Jexs on 9/22/2024 in #help
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
CC#
Created by Jexs on 8/23/2024 in #help
can someone review my comments?
using System;

namespace ExampleNamespace
{
// Define a class named Example
class Example
{
// Define a method named DoSomething in the Example class
public void DoSomething()
{
Console.WriteLine("do something with this object");
}
}

// Define a class named ExampleUser
class ExampleUser
{
// Define a method named UseExample in the ExampleUser class
// This method takes an instance of the Example class as a parameter
public void UseExample(Example example)
{
// Call the DoSomething method on the Example instance passed as a parameter
example.DoSomething();
}
}

// Define the main entry point of the application
class Program
{
static void Main(string[] args)
{
// Create an instance of the Example class
Example exampleInstance = new Example();

// Create an instance of the ExampleUser class
ExampleUser user = new ExampleUser();

// Pass the instance of the Example class to the UseExample method
user.UseExample(exampleInstance);
}
}
}
using System;

namespace ExampleNamespace
{
// Define a class named Example
class Example
{
// Define a method named DoSomething in the Example class
public void DoSomething()
{
Console.WriteLine("do something with this object");
}
}

// Define a class named ExampleUser
class ExampleUser
{
// Define a method named UseExample in the ExampleUser class
// This method takes an instance of the Example class as a parameter
public void UseExample(Example example)
{
// Call the DoSomething method on the Example instance passed as a parameter
example.DoSomething();
}
}

// Define the main entry point of the application
class Program
{
static void Main(string[] args)
{
// Create an instance of the Example class
Example exampleInstance = new Example();

// Create an instance of the ExampleUser class
ExampleUser user = new ExampleUser();

// Pass the instance of the Example class to the UseExample method
user.UseExample(exampleInstance);
}
}
}
im worried about this code the most since it doesnt sound right to me
class ExampleUser
{
// Define a method named UseExample in the ExampleUser class
// This method takes an instance of the Example class as a parameter
public void UseExample(Example example)
{
// Call the DoSomething method on the Example instance passed as a parameter
example.DoSomething();
}
}
class ExampleUser
{
// Define a method named UseExample in the ExampleUser class
// This method takes an instance of the Example class as a parameter
public void UseExample(Example example)
{
// Call the DoSomething method on the Example instance passed as a parameter
example.DoSomething();
}
}
is
class Example
{
// Define a method named DoSomething in the Example class
public void DoSomething()
{
Console.WriteLine("do something with this object");
}
}
class Example
{
// Define a method named DoSomething in the Example class
public void DoSomething()
{
Console.WriteLine("do something with this object");
}
}
the instance of the example class if not what is the instance?
17 replies
CC#
Created by Jexs on 8/21/2024 in #help
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
CC#
Created by Jexs on 8/7/2024 in #help
how do I disable this
No description
37 replies
CC#
Created by Jexs on 8/7/2024 in #help
can someone help me read and understand this
No description
35 replies
CC#
Created by Jexs on 8/6/2024 in #help
How would you read this outloud or put it into a sentence?
for (int i = 0; i < 10; i += 2) {

Console.WriteLine("Even Numbers" + i);

}
for (int i = 0; i < 10; i += 2) {

Console.WriteLine("Even Numbers" + i);

}
16 replies
CC#
Created by Jexs on 8/5/2024 in #help
✅ Why wont my intella sence work
No description
154 replies
CC#
Created by Jexs on 8/3/2024 in #help
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
CC#
Created by Jexs on 7/12/2024 in #help
are theses considered namespaces?
are theses considered namespaces using System; using MyApplication.Utilities;
21 replies
CC#
Created by Jexs on 7/5/2024 in #help
Why wont this run?
No description
21 replies
CC#
Created by Jexs on 7/4/2024 in #help
✅ why am i getting this error
No description
12 replies
CC#
Created by Jexs on 7/2/2024 in #help
Hi is this the same thing?
No description
48 replies
CC#
Created by Jexs on 1/8/2023 in #help
❔ Hi i need wpf help
14 replies
CC#
Created by Jexs on 1/7/2023 in #help
❔ 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
CC#
Created by Jexs on 12/24/2022 in #help
❔ 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