I have a calculator project to do I have the code and form for the project and everything works except the back space key...can any one help me with a code?
Printable View
I have a calculator project to do I have the code and form for the project and everything works except the back space key...can any one help me with a code?
vbKeyBack or 8
Code:'Private Sub Object_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyBack Then
MsgBox "Backspace pressed!"
End If
'End Sub
Is there another way of coding with out using the message box?
I think the MessageBox is just an example, you can put what ever you want in the If statement
Try this:
Private Sub Command1_Click()
SendKeys "{BACKSPACE}"
End Sub
Lars