I have a program that at one point works with the visibility of an object. I'm creating a function and I do not know how to reference objects.
private void Visible(object x, object y, object z, object a)
{
x.Visible = true;
y.Visible = true;
z.Visible = true;
a.Visible = true;
}
The .Visible
are in red underline, before I was doing it manually, but with function it decreases the amount of lines of code.
How do I reference TextBoxes
and Buttons
?