I want the same routine to happen if I hit the Enter key or click the Submit button. Here is what I have that I thought would work. But when I hit the Enter key it clears my form.

VB Code:
  1. Private Sub btnSubmit_KeyPress(ByVal KeyAscii As Integer)
  2.         KeyAscii = Asc(UCase(Chr(KeyAscii)))
  3.         If KeyAscii = 13 Then
  4.             KeyAscii = 0
  5.             EnterMemoriam()
  6.         End If
  7.     End Sub
  8.  
  9.     Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
  10.         EnterMemoriam()
  11.     End Sub