keypress event on textbox
-
i have different textboxes in my from on one textbox when i press a tab key i want print one messagebox i am writing thiss code but its not working on tab key although its working on like back key but not on tabkey plz tell me
Private Sub ItemCode_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ItemCode.KeyPress If (e.KeyChar = Microsoft.VisualBasic.ChrW(9)) Then MessageBox.Show("u have pressed tab key") End If
-
i have different textboxes in my from on one textbox when i press a tab key i want print one messagebox i am writing thiss code but its not working on tab key although its working on like back key but not on tabkey plz tell me
Private Sub ItemCode_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ItemCode.KeyPress If (e.KeyChar = Microsoft.VisualBasic.ChrW(9)) Then MessageBox.Show("u have pressed tab key") End If
-
i have different textboxes in my from on one textbox when i press a tab key i want print one messagebox i am writing thiss code but its not working on tab key although its working on like back key but not on tabkey plz tell me
Private Sub ItemCode_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ItemCode.KeyPress If (e.KeyChar = Microsoft.VisualBasic.ChrW(9)) Then MessageBox.Show("u have pressed tab key") End If