Want to change traped keycode
-
Following code is working.But want to change the keycode. In vb6 keycode=0 was working.How do it in VB.NET.Can anybody help me. Private Sub text1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles text1.KeyUp If e.KeyCode = 13 And btnstat = 1 Then MsgBox(e.KeyCode) End If End Sub
-
Following code is working.But want to change the keycode. In vb6 keycode=0 was working.How do it in VB.NET.Can anybody help me. Private Sub text1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles text1.KeyUp If e.KeyCode = 13 And btnstat = 1 Then MsgBox(e.KeyCode) End If End Sub
Do you mean somthing like sending a tab, instead of a carriage return? Private Sub TextBox1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyUp If e.KeyCode = Keys.Return And btnstat = 1 Then SendKeys.Send("{TAB}") End If End Sub