Slava,
You need to do this recursively for all ContainerControls, since TabControl is a container that contains other controls.
~~Bonnie
>I want to go through all controls on my form. I did it before for a form based on the mmBusinessForm class without a problem. Now I am doing the same for a form based on the mmMaintenanceForm class. The
foreach (Control ctrl in this.Controls) {}
statement finds just one, TabControl control.
>I checked the CustomerOrderForm in the MM Northwind sample.
MessageBox.Show(this.Controls.Count.ToString());
shows just 1. What am I missing?
>
>Thanks
>
>Slava