Hi,
this does the rick for me, place a richtextbox and a button on a form
<<<<<code>>>>>
Private blnInsert As Boolean = False
Private Sub RichTextBox1_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles RichTextBox1.KeyDown
If e.KeyCode = Keys.Insert Then
blnInsert = Not blnInsert
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
If blnInsert = True Then
MsgBox("insert = ON")
Else
MsgBox("insert = OFF")
End If
End Sub
<<<<<code>>>>>
hth Peter