Press 'Enter' key for OK

Posted by Sakthi.Singaravel under VB.NET category on | Points: 40 | Views : 1930
The following is used to after entering input into textbox then press "Enter" key for execute the process.

Private Sub txt_Input_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txt_Input.KeyPress
If e.KeyChar = Convert.ToChar(Keys.Enter) Then
End If
End Sub

Comments or Responses

Login to post response