Focus
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| 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:
[edit]
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;
[edit]
MSDN references
|
© 2007-2008 Mike Kitchen

