MaskedEditBox Events in MaskedEditBox

4 Feb 202510 minutes to read

The list of events and a detailed explanation about each of them is given in the following sections.

MaskedEditBox Events Description
Border3DStyleChanged This event occurs when the Border3DStyle property is changed.
BorderColorChanged This event occurs when the BorderColor property is changed.
BorderSidesChanged This event occurs when the BorderSides property is changed.
BorderStyleChanged This event occurs when the ClipText property is changed.
CharacterCasingChanged This event occurs when the CharacterCasing property is changed.
HideSelectionChanged This event occurs when the HideSelection property is changed.
MaskCustomValidate This event is handled to provide custom behavior to any mask characters.
MaskSatisfied This event is raised when the required fields in a mask have been satisfied after new text has been entered / the text changes.
MaximumSizeChanged This event occurs when the MaximumSize property is changed.
MinimumSizeChanged This event occurs when the MinimumSize property is changed.
MultilineChanged This event occurs when the Multiline property is changed.
ReadOnlyChanged This event occurs when the ReadOnly property is changed.
TextAlignChanged This event occurs when the TextAlign property is changed.
ThemesEnabledChanged This event occurs when the ThemesEnabled property is changed.

Border3DStyleChanged

This event occurs when the Border3DStyle property is changed. The Border3DStyle property indicates the style of the 3D border.

The event handler receives an argument of type EventArgs containing data related to this event.

private void maskedEditBox1_Border3DStyleChanged(object sender, EventArgs e)
{
    Console.WriteLine(" Border3DStyleChanged event is raised ");
}
Private Sub maskedEditBox1_Border3DStyleChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" Border3DStyleChanged event is raised ")
End Sub

BorderColorChanged

This event occurs when the BorderColor property is changed. The BorderColor property indicates the color of the 2D border.

The event handler receives an argument of type EventArgs containing data related to this event.

private void maskedEditBox1_BorderColorChanged(object sender, EventArgs e)
{
    Console.WriteLine(" BorderColorChanged event is raised ");
}
Private Sub maskedEditBox1_BorderColorChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" BorderColorChanged event is raised ")
End Sub

BorderSidesChanged

This event occurs when the BorderSides property is changed. The BorderSides property indicates the border sides of the panel.

The event handler receives an argument of type EventArgs containing data related to this event.

private void maskedEditBox1_BorderSidesChanged(object sender, EventArgs e)
{
    Console.WriteLine(" BorderSidesChanged event is raised ");
}
Private Sub maskedEditBox1_BorderSidesChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" BorderSidesChanged event is raised ")
End Sub

BorderStyleChanged

This event occurs when the BorderStyle property is changed. The BorderStyle property indicates whether the edit control should have a border.

The event handler receives an argument of type EventArgs containing data related to this event.

private void maskedEditBox1_BorderStyleChanged(object sender, EventArgs e)
{
    Console.WriteLine(" BorderStyleChanged event is raised ");
}
Private Sub maskedEditBox1_BorderStyleChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" BorderStyleChanged event is raised ")
End Sub

CharacterCasingChanged

This event occurs when the CharacterCasing property is changed. The CharacterCasing property gets or sets the case of the characters as they are typed.

The event handler receives an argument of type EventArgs containing data related to this event.

private void maskedEditBox1_CharacterCasingChanged(object sender, EventArgs e)
{
    Console.WriteLine(" CharacterCasingChanged event is raised ");
}
Private Sub maskedEditBox1_CharacterCasingChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" CharacterCasingChanged event is raised ")
End Sub

HideSelectionChanged

This event occurs when the HideSelection property is changed. The HideSelection property indicates that the selection should be hidden when the edit control loses focus.

The event handler receives an argument of type EventArgs containing data related to this event.

private void maskedEditBox1_HideSelectionChanged(object sender, EventArgs e)
{
    Console.WriteLine(" HideSelectionChanged event is raised ");
}
Private Sub maskedEditBox1_HideSelectionChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" HideSelectionChanged event is raised ")
End Sub

MaskCustomValidate

This event is handled to provide custom behavior to any mask characters.

The event handler receives an argument of type MaskCustomValidateArgs containing data related to this event. The following MaskCustomValidateArgs members provide information specific to this event.

Members Description
Accepted Indicates whether the event has been handled and no further processing of the event should happen.
CurrentCharacter Returns the current character.
CurrentIndex Returns the current position. It will be a valid mask position.
CurrentMaskCharacter Returns the current mask character.
Handled Indicates whether the event has been handled and no further processing of the event should happen.
private void maskedEditBox1_MaskCustomValidate(object sender, Syncfusion.Windows.Forms.Tools.MaskCustomValidateArgs e)
{
    Console.WriteLine(" MaskCustomValidate event is raised ");
}
Private Sub maskedEditBox1_MaskCustomValidate(ByVal sender As Object, ByVal e AsSyncfusion.Windows.Forms.Tools.MaskCustomValidateArgs)
Console.WriteLine(" MaskCustomValidate event is raised ")
End Sub

MaskSatisfied

This event is raised when the required fields in a mask have been satisfied after new text has been entered or the text changes.

The event handler receives an argument of type EventArgs containing data related to this event.

private void maskedEditBox1_MaskSatisfied(object sender, EventArgs e)
{
    Console.WriteLine(" MaskSatisfied event is raised ");
}
Private Sub maskedEditBox1_MaskSatisfied(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" MaskSatisfied event is raised ")
End Sub

MaximumSizeChanged

This event occurs when the MaximumSize property is changed. The MaximumSize property gets or sets the maximum size of the control.

The event handler receives an argument of type EventArgs containing data related to this event.

private void maskedEditBox1_MaximumSizeChanged(object sender, EventArgs e)
{   
    Console.WriteLine(" MaximumSizeChanged event is raised ");
}
Private Sub maskedEditBox1_MaximumSizeChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" MaximumSizeChanged event is raised ")
End Sub

MinimumSizeChanged

This event occurs when the MinimumSize property is changed. The MinimumSize property gets or sets the minimum size of the control.

The event handler receives an argument of type EventArgs containing data related to this event.

private void maskedEditBox1_MinimumSizeChanged(object sender, EventArgs e)
{
    Console.WriteLine(" MinimumSizeChanged event is raised ");
}
Private Sub maskedEditBox1_MinimumSizeChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" MinimumSizeChanged event is raised ")
End Sub

MultilineChanged

This event occurs when the Multiline property is changed. The Multiline property controls whether the text of the edit control can span more than one line or not.

The event handler receives an argument of type EventArgs containing data related to this event.

private void maskedEditBox1_MultilineChanged(object sender, EventArgs e)
{
    Console.WriteLine(" MultilineChanged event is raised ");
}
Private Sub maskedEditBox1_MultilineChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" MultilineChanged event is raised ")
End Sub

ReadOnlyChanged

This event occurs when the ReadOnly property is changed. The ReadOnly property controls whether the text in the edit control can be changed or not.

The event handler receives an argument of type EventArgs containing data related to this event.

private void maskedEditBox1_ReadOnlyChanged(object sender, EventArgs e)
{
    Console.WriteLine(" ReadOnlyChanged event is raised ");
}
Private Sub maskedEditBox1_ReadOnlyChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" ReadOnlyChanged event is raised ")
End Sub

TextAlignChanged

This event occurs when the TextAlign property is changed. The TextAlign property indicates how the text should be aligned for edit controls.

The event handler receives an argument of type EventArgs containing data related to this event.

private void maskedEditBox1_TextAlignChanged(object sender, EventArgs e)
{
    Console.WriteLine(" TextAlignChanged event is raised ");
}
Private Sub maskedEditBox1_TextAlignChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" TextAlignChanged event is raised ")
End Sub

ThemesEnabledChanged

This event occurs when the ThemesEnabled property is changed. The ThemesEnabled property specifies whether or not to use XP Themes when the BorderStyle property is set to ‘Fixed3D’.

The event handler receives an argument of type EventArgs containing data related to this event.

private void maskedEditBox1_ThemesEnabledChanged(object sender, EventArgs e)
{
    Console.WriteLine(" ThemesEnabledChanged event is raised ");
}
Private Sub maskedEditBox1_ThemesEnabledChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" ThemesEnabledChanged event is raised ")
End Sub