I need to determine the type of each control on the form. That is I need to check whether a control is commandButton or checkbox etc. Using the Controls collection I can traverse through all the controls on the form, but how can i check their types?

Ali.