System.Windows.Forms.TextBoxBase.Modified Property

Gets or sets a value that indicates that the text box control has been modified by the user since the control was created or its contents were last set.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public bool Modified { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can use this property to determine if the user has modified the contents of the text box control. You can also set this property in code to indicate that changes were made to the text box control by the application. This property can be used by validation and data-saving methods to determine if changes were made in a text box control so the changed contents can be validated or saved.

If you change the TextBoxBase.Text property programmatically, the TextBoxBase.Modified property reverts to false. This does not raise the TextBoxBase.ModifiedChanged event.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0
Since: .NET 2.0