70-526 MCTS


Focus

If you look in the Category view for the form, there is only one property listed under Focus:


CausesValidation

The default value is set to True and is inherited from Control. This property indicates whether the form causes validation to be performed on any controls that require validation when it receives focus.

To change the CausesValidation property at run time, simply set the property to the desired value.

this.CausesValidation = false;

MSDN references

  • Control.CausesValidation Property


    << Previous Contents Next >>

    © Publicjoe, 2007