Focus

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
Exam Prep. Guides
70-505 Study Guide
70-526 Study Guide

1. Forms Controls

2. Integrating Data
3. Printing/Reporting
4. Enhancing Usability
5. Asynchronous Prog.
6. Forms Controls
7. Configure/Deploy

edit
Exam 70-526 Preparation Guide: Configure a Windows Form to control focus.


Contents


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


Previous_Page_.gif Next_Page_.gif
© 2007-2008 Mike Kitchen

Personal tools