Edit

Share via


TreeViewArray.AfterCheck Event

Definition

Occurs after the tree node check box is selected.

public:
 event System::Windows::Forms::TreeViewEventHandler ^ AfterCheck;
public event System.Windows.Forms.TreeViewEventHandler AfterCheck;
member this.AfterCheck : System.Windows.Forms.TreeViewEventHandler 
Public Custom Event AfterCheck As TreeViewEventHandler 
Public Event AfterCheck As TreeViewEventHandler 

Event Type

Remarks

Setting the Checked property from within a BeforeCheck or AfterCheck event handler causes the event to be raised multiple times and can result in unexpected behavior. To prevent the event from being raised multiple times, add logic to your event handler that only executes your recursive code if the Action property of the TreeViewEventArgs is not set to Unknown.

For more information about how to handle events, see Handling and Raising Events.

Note

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. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

Applies to