HeaderPane
Main
Hide
Share Link
Print

InputModeChanged Event, SftMask Class

Occurs when the control switches between insert and overtype mode.

Class: SftMask
Namespace: Softelvdm.SftMaskNET
Assembly: Softelvdm.SftMaskNET

Syntax

public event EventHandler InputModeChanged;
Public Event InputModeChanged As EventHandler

Comments

Occurs when the control switches between insert and overtype mode.

With InputModeEnum.InsertOnly, InputModeEnum.Insert and InputModeEnum.Overtype, the event also occurs each time the control receives the input focus; with the other modes, only when receiving the input focus changes the mode.

Examples

C# View entire sample code

            DumpValues("sftMask1.DropDownClosed", e);
        }

        private void sftMask1_PrePaste(object sender, PrePasteEventArgs e) {
            DumpValues("sftMask1.PrePaste", e);
        }

        private void sftMask1_InputModeChanged(object sender, EventArgs e) {
            DumpValues("sftMask1.InputModeChanged (" + (sftMask1.Overtype ? "overtype" : "insert") + ")", e);
        }

        private void sftMask1_Enter(object sender, EventArgs e) {
            DumpValues("sftMask1.Enter", e);
        }

        private void sftMask1_Leave(object sender, EventArgs e) {

VB.NET View entire sample code

    Private Sub SftMask1_DropDownClosed(ByVal sender As Object, ByVal e As DropDownEventArgs) Handles SftMask1.DropDownClosed
        DumpValues("SftMask1.DropDownClosed", e)
    End Sub

    Private Sub SftMask1_PrePaste(ByVal sender As Object, ByVal e As PrePasteEventArgs) Handles SftMask1.PrePaste
        DumpValues("SftMask1.PrePaste", e)
    End Sub

    Private Sub SftMask1_InputModeChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftMask1.InputModeChanged
        DumpValues("SftMask1.InputModeChanged (" + If(SftMask1.Overtype, "overtype", "insert") + ")", e)
    End Sub

    Private Sub SftMask1_Enter(ByVal sender As Object, ByVal e As EventArgs) Handles SftMask1.Enter
        DumpValues("SftMask1.Enter", e)
    End Sub

See Also SftMask Class | Classes | SftMask/NET 3.0