System.Windows.Forms.ContainerControl.Validate C# (CSharp) Method

Validate() public method

public Validate ( ) : bool
return bool
		public bool Validate() {
			//throw new NotImplementedException();
			if (!ValidateWarned) {
				Console.WriteLine("ContainerControl.Validate is not yet implemented");
				ValidateWarned = true;
			}
			return true;
		}

Same methods

ContainerControl::Validate ( bool checkAutoValidate ) : bool

Usage Example

 /// <include file='doc\ContainerControl.uex' path='docs/doc[@for="ContainerControl.Validate"]/*' />
 /// <devdoc>
 ///    <para>Validates the last unvalidated control and its ancestors up through, but not including the current control.</para>
 /// </devdoc>
 public bool Validate()
 {
     if (unvalidatedControl == null)
     {
         if (focusedControl is ContainerControl && focusedControl.CausesValidation)
         {
             ContainerControl c = (ContainerControl)focusedControl;
             c.Validate();
         }
         else
         {
             unvalidatedControl = focusedControl;
         }
     }
     return(ValidateThroughAncestor(null));
 }
All Usage Examples Of System.Windows.Forms.ContainerControl::Validate