At any place in the execution of the program, place it in break mode and in the Immediate window type ?controls.count and press return. "Controls" is the name of a collection that contains information about all the controls on a form and Count is a property of all collections.