All visible controls and layouts have a GetType() method which returns a string indicating the type of the control.