

| Type | Description | |||
| String | A string expression that indicates the current selection's text. |
The following VB sample displays the selected text when the user changes it:
Private Sub CalcCalcEdit1_SelChange()
Debug.Print CalcEdit1.SelText
End Sub
The following C++ sample displays the selected text when the user changes it:
void OnSelChangeCalcEdit1()
{
OutputDebugString( m_edit.GetSelText() );
}
The following VB.NET sample displays the selected text when the user changes it:
Private Sub AxCalcCalcEdit1_SelChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxCalcEdit1.SelChange
With AxCalcEdit1
Debug.WriteLine(.SelText)
End With
End Sub
The following C# sample displays the selected text when the user changes it:
private void axCalcCalcEdit1_SelChange(object sender, EventArgs e)
{
System.Diagnostics.Debug.WriteLine(axCalcEdit1.SelText);
}
The following VFP sample displays the selected text when the user changes it:
*** ActiveX Control Event *** with thisform.CalcEdit1 wait window nowait .SelText endwith