RichTextBoxArray.Protected Event

Definition

Occurs when the user attempts to modify protected text in the control.

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

Remarks

You can create an event handler for this event in your applications to determine when the user has tried to modify text that has been marked as protected in the control. The event handler can be used to notify the user that the text the user is trying to modify is protected or to display a dialog box that enables the user to make appropriate changes to the text. For example, if the protected area is a date, you can display a dialog box that enables the user to select a date that can then be applied to the text of the control.

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