Editare

Partajați prin


MaskedTextBox.IsOverwriteModeChanged Event

Definition

Occurs after the insert mode has changed.

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

Event Type

Examples

The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the IsOverwriteModeChanged event. This report helps you to learn when the event occurs and can assist you in debugging. To report on multiple events or on events that occur frequently, consider replacing MessageBox.Show with Console.WriteLine or appending the message to a multiline TextBox.

To run the example code, paste it into a project that contains an instance of type MaskedTextBox named MaskedTextBox1. Then ensure that the event handler is associated with the IsOverwriteModeChanged event.

private void MaskedTextBox1_IsOverwriteModeChanged(Object sender, EventArgs e) {

   MessageBox.Show("You are in the MaskedTextBox.IsOverwriteModeChanged event.");
}
Private Sub MaskedTextBox1_IsOverwriteModeChanged(sender as Object, e as EventArgs) _ 
     Handles MaskedTextBox1.IsOverwriteModeChanged

   MessageBox.Show("You are in the MaskedTextBox.IsOverwriteModeChanged event.")

End Sub

Remarks

The IsOverwriteModeChanged event is raised after value of the IsOverwriteMode property is changed.

This event is required to properly bind data to a MaskedTextBox control.

Applies to

See also