For example, the FormĬlass always sets the ForeColor and BackColor properties. Some objects derived from the ControlĬlass might set the property even if you do not. The property is not set on the AmbientProperties object, the Control If theĬontrol is not sited, the site does not support ambient properties, or
Value of the ambient property through the Site property. Parent and the property is not set, the control tries to find the Here is MSDN on these 'ambient properties'.:Īn ambient property is a property on a control that, if not set, is This comes handy if you want to use, say Consolas,10 for all Controls. That includes the Font of the Form as well as its BackColor. Many Controls you add to a Form, default to some of the Form's properties.