This entire snippet errors out with "Argument not optional" when I run this code. I put in the code as instructed, as seen below:


Code:
Private Sub Form_KeyPress(KeyAscii As Integer)
    If SendKeys = "^C" Then    'VB errors out with "Expected: Then Or GoTo without the =
        MsgBox "Control+C pressed"
    End If
End Sub

I thought it might be that the Wait variable was missing, but I looked it up on MSDN, and it says that variable is optional. I tried it anyways, and I still get the same error. What am I doing wrong?