In the KeyDown Event: If e.KeyCode = Keys.Enter Then Messagebox.Show("Enter key pressed") end if Make sure the form KeyPreview property is set to true.
確定! 回上一頁