Hi,
You can try this foe the enter Key:
vb Code:
' The keypressed method uses the KeyChar property to check ' whether the ENTER key is pressed. ' If the ENTER key is pressed, the Handled property is set to true, ' to indicate the event is handled. If e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.Return) Then e.Handled = True End If
For the Backspace use:
vb Code:
If e.KeyChar = Microsoft.VisualBasic.Chr(Keys.Back) Then MsgBox("You pressed the Backkey") End If
Wkr,
sparrow1





Reply With Quote