Paso 6: codificación
Public Class Form1
Privada sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) maneja Me.Keypress
Si e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.Return) entonces
Form2.Show()
Me.Hide()
Terminar si
End Sub
Clase final