I'm currently working on something where I want to make a method that's able to take a tool object(button,textBox etc.) as a parameter, and access some of it's properties. Specifically, I want to set it's visible property to false. To give a better insight as to what i'm actually asking here, i'll show you an example;

public void (UniversalToolClass tool)
{
tool.visible = false;
}

Something like that, a "Universal" class that can take any tool as it's parameters , and access it's properties that way.