TextBoxArray.Validated 事件

定义

在控件完成验证时发生。Occurs when the control is finished validating.

public:
 event EventHandler ^ Validated;
public event EventHandler Validated;
member this.Validated : EventHandler 
Public Custom Event Validated As EventHandler 
Public Event Validated As EventHandler 

事件类型

EventHandler

注解

使用 "键盘 (" 选项卡、"SHIFT + TAB") ,并通过调用 SelectSelectNextControl 方法,或通过将 ActiveControl 属性设置为当前窗体来更改焦点时,焦点事件将按以下顺序发生:When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the following order:

Enter

GotFocus

Leave

Validating

Validated

LostFocus

使用鼠标或通过调用方法来更改焦点时 Focus ,焦点事件会按以下顺序发生:When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following order:

Enter

GotFocus

LostFocus

Leave

Validating

Validated

如果将 CausesValidation 属性设置为 false ,则将 Validating Validated 取消和事件。If the CausesValidation property is set to false, the Validating and Validated events are suppressed.

如果在 Cancel CancelEventArgs 事件委托中将的属性设置为,则会 true Validating 禁止发生事件后通常会发生的所有事件 ValidatingIf the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would usually occur after the Validating event are suppressed.

有关如何处理事件的详细信息,请参阅 处理和引发事件For more information about how to handle events, see Handling and Raising Events.

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

适用于

另请参阅