I have a function that returns an object as Label for the sake of understanding let's call it "lblStatus".
public Label statusUpdater(int x)
{
Label lblStatus = new Label();
if (x==1)
{
lblStatus.text = "I like Cheese!";
}
else
{
lblStatus.text = "And I don't care!";
}
return lblStatus;
}
label1 = myclass.statusUpdater(1);
Would this be possible?
All I really need is to give all properties from a Label
to another.
Not like this (label1
exists in designer)