dond~
dond~
CC#
Created by dond~ on 10/8/2023 in #help
❔ Getting property from object based on input
Is it possible to create a function that would look something like this? Here I already have the object and I know for sure that the property actually exists. I'm quite new to C#, so I don't know if this is actually possible
private void(string propertyName)
{
Console.WriteLine(myObject.propertyName.toString());
}
private void(string propertyName)
{
Console.WriteLine(myObject.propertyName.toString());
}
23 replies
CC#
Created by dond~ on 7/7/2023 in #help
Picturebox not displaying my pictures
I'm not sure what I'm doing wrong, my pictures don't show for some reason. This is my code:
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
pictureBox1.Image = Properties.Resources.picture1;
pictureBox2.Image = Properties.Resources.picture2;
pictureBox3.Image = Properties.Resources.picture2;
}
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
pictureBox1.Image = Properties.Resources.picture1;
pictureBox2.Image = Properties.Resources.picture2;
pictureBox3.Image = Properties.Resources.picture2;
}
The pictures are in my resources This is my Form1 design: https://prnt.sc/D0bPBiyNr4Pu
7 replies
CC#
Created by dond~ on 6/18/2023 in #help
❔ Call an API, get information and then display it on an ASP.NET app
hello, I have created a console application that can retrieve data from an API. Now I want to display this data on an ASP.NET webapp, but I can't find anything on how to do this. Can anyone help me get started?
104 replies