This sample illustrates insert/overtype mode and the InputModeUpdate event.
This is not an executable sample, so a complete project is not provided. These statements are intended to show basic concepts and the syntax used.
private void Form1_Load(object sender, System.EventArgs e)
{
axSftMask1.Caption.Text = "Insert->";
axSftMask1.InputMode = SftMaskInputModeConstants.inputSftMaskInsert;
axSftMask2.Caption.Text = "Overtype->";
axSftMask2.InputMode = SftMaskInputModeConstants.inputSftMaskOvertype;
}
private void axSftMask1_InputModeUpdate(object sender, AxSftMaskLib70._ISftMaskEvents_InputModeUpdateEvent e)
{
label1.Text = e.insertMode.ToString();
}
private void axSftMask2_InputModeUpdate(object sender, AxSftMaskLib70._ISftMaskEvents_InputModeUpdateEvent e)
{
label1.Text = e.insertMode.ToString();
}