I currently have a rich textbox control on my Windows Form which allows the user to overwrite text when the Insert Key is pressed. Is there a way to trigger the insert key control so that the user does not have to manually hit the insert key in order to overwrite text? I looked at the following link: https://docs.microsoft.com/en-us/dotnet/framework/winforms/how-to-simulate-mouse-and-keyboard-events-in-code
The C# code to accomplish this is :
private void Form1_DoubleClick(object sender, EventArgs e)
{
SendKeys.Send("{INSERT}");
}
In Managed COBOL I tried the following when the form loads:
set self::System.Windows.Forms.SendKey("INSERT")
I also tried the same code for the control as follows:
set rchTextBox1::KeyUp to type System.Windows.Forms.SendKey("INSERT")
Neither code compiles as they give me errors.



