Hello, is it true that the following code:

VB Code:
  1. Private Sub Form_KeyPress(KeyAscii As Integer)
  2. If KeyAscii = vbKeyReturn Then
  3.    SendKeys ("{TAB}")
  4.    KeyAscii = 0
  5. End If
  6. End Sub

generates an error under Windows Vista or on a machine equipped with Internet Explorer 7.0?

What is exactly the error message that you get? And does the error cause the application to shut down if it is not handled?

Unfortunately, I have neither Windows Vista nor IE 7.0 installed on my computer, so I cannot test it by myself.

Any help will be appreciated.