HeaderPane
Main
Hide
Share Link
Print

EditTextChanged Event, SftBox Class

Occurs when the user changes the text of the edit field.

Class: SftBox
Namespace: Softelvdm.SftBoxNET
Assembly: Softelvdm.SftBoxNET

Syntax

public event EventHandler EditTextChanged;
Public Event EditTextChanged As EventHandler

Comments

Occurs when the user changes the text of the edit field.

The event doesn't occur when the text changes because an item is selected or the SftBox.Text property is set; the TextChanged event occurs for all changes.

Examples

C# View entire sample code

            DumpValues("sftBox1.SelectionCommitted (" + Selection(sftBox1) + ")", e);
        }

        private void sftBox1_SelectedValueChanged(object sender, EventArgs e) {
            DumpValues("sftBox1.SelectedValueChanged", e);
        }

        private void sftBox1_EditTextChanged(object sender, EventArgs e) {
            DumpValues("sftBox1.EditTextChanged (" + sftBox1.Text + ")", e);
        }

        private void sftBox1_TextChanged(object sender, EventArgs e) {
            DumpValues("sftBox1.TextChanged (" + sftBox1.Text + ")", e);
        }

        private void sftBox1_DropDownOpening(object sender, CancelEventArgs e) {

VB.NET View entire sample code

    Private Sub SftBox1_SelectionCommitted(ByVal sender As Object, ByVal e As EventArgs) Handles SftBox1.SelectionCommitted
        DumpValues("SftBox1.SelectionCommitted (" + Selection(SftBox1) + ")", e)
    End Sub

    Private Sub SftBox1_SelectedValueChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftBox1.SelectedValueChanged
        DumpValues("SftBox1.SelectedValueChanged", e)
    End Sub

    Private Sub SftBox1_EditTextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftBox1.EditTextChanged
        DumpValues("SftBox1.EditTextChanged (" + SftBox1.Text + ")", e)
    End Sub

    Private Sub SftBox1_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftBox1.TextChanged
        DumpValues("SftBox1.TextChanged (" + SftBox1.Text + ")", e)
    End Sub

See Also SftBox Class | Classes | SftBox/NET 3.0