[Solved] Can I make a label display different text depending on a variable?


It depends on the variable. If the variable is a string it’s no problem and you can do it like this: Label1.Text = yourString;

However when the variable is of another type like int it’s a abit harder to do. Luckily you are working with a label that accepts string and most types are easy to convert to string like in the int example: Label1.Text = yourInt.ToString();

In the end you just have to look up the type of the variable and see how you can convert it to the wanted type.

solved Can I make a label display different text depending on a variable?